Skip to content

Commit

Permalink
bugfix: node labels not initialized with all node values
Browse files Browse the repository at this point in the history
  • Loading branch information
guyazran committed Dec 26, 2022
1 parent 6ee347c commit 44e348b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plot_utils/draw_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ def draw_graph(graph, latent_nodes=None, selection_nodes=None, bkcolor='white',
selection_nodes = set()
if latent_nodes is None:
latent_nodes = set()
if node_labels is None:
node_labels = {}
for node in graph.nodes_set:
if node not in node_labels:
node_labels[node] = node

bottom = 0
# top = 1
Expand Down

0 comments on commit 44e348b

Please sign in to comment.