We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365b689 commit 26fc537Copy full SHA for 26fc537
examples/hard-core-lattice-gas/main.jl
@@ -55,7 +55,7 @@ partition_func[]
55
56
# The marginal probabilities can be computed with the [`marginals`](@ref) function, which measures how likely a site is occupied.
57
mars = marginals(pmodel)
58
-show_graph(graph; locs=sites, vertex_colors=[(b = mars[[i]][2]; (1-b, 1-b, 1-b)) for i in vertices(graph)], texts=fill("", nv(graph)))
+show_graph(graph; locs=sites, vertex_colors=[(b = mars[[i]][2]; (1-b, 1-b, 1-b)) for i in 1:nv(graph)], texts=fill("", nv(graph)))
59
# The can see the sites at the corner is more likely to be occupied.
60
# To obtain two-site correlations, one can set the variables to query marginal probabilities manually.
61
pmodel2 = TensorNetworkModel(problem, β; mars=[[e.src, e.dst] for e in edges(graph)])
0 commit comments