Skip to content

Commit

Permalink
Update spring layout
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhiggott committed Apr 2, 2021
1 parent 42e8611 commit 4bfaee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatching/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def draw(self):
warnings.filterwarnings("ignore",category=matplotlib.cbook.mplDeprecation)
warnings.filterwarnings("ignore", category=DeprecationWarning)
G = self.to_networkx()
pos=nx.spring_layout(G, weight=1)
pos=nx.spring_layout(G, weight=None)
c = "#bfbfbf"
ncolors = ['w' if n[1]['is_boundary'] else c for n in G.nodes(data=True)]
nx.draw_networkx_nodes(G, pos=pos, node_color=ncolors, edgecolors=c)
Expand Down

0 comments on commit 4bfaee8

Please sign in to comment.