Skip to content

Commit 26fc537

Browse files
committed
fix document
1 parent 365b689 commit 26fc537

File tree

1 file changed

+1
-1
lines changed
  • examples/hard-core-lattice-gas

1 file changed

+1
-1
lines changed

examples/hard-core-lattice-gas/main.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ partition_func[]
5555

5656
# The marginal probabilities can be computed with the [`marginals`](@ref) function, which measures how likely a site is occupied.
5757
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)))
58+
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)))
5959
# The can see the sites at the corner is more likely to be occupied.
6060
# To obtain two-site correlations, one can set the variables to query marginal probabilities manually.
6161
pmodel2 = TensorNetworkModel(problem, β; mars=[[e.src, e.dst] for e in edges(graph)])

0 commit comments

Comments
 (0)