2 votes

How to simulate a directed acyclic graph?

An idea in order to generalize the steps 3 and 4, considering the definition of the weighted graph given by edges and weights: ...
vindobona's user avatar
  • 1,611
1 vote

Value of a function over permutations of two lists

You can do the multiplications more efficiently without needing Sum. ...
flinty's user avatar
  • 23.7k
1 vote

Sum on a lattice where variables can only take two values (Ising lattice gauge theory)

One option is to specify each node as a pair of integers, {x,y}. You might also consider placing your spins at the nodes rather than on the edges. There will be four spins/plaquette either way, and ...
jdp's user avatar
  • 1,036

Only top scored, non community-wiki answers of a minimum length are eligible