Skip to content

Commit

Permalink
Fixed node highlighting for single highlight argument
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Apr 17, 2019
1 parent bd7e741 commit 9c1583b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrogen/visualize.py
Expand Up @@ -119,7 +119,7 @@ def write_dot(graph: nx.MultiDiGraph, target: Union[PathLike, str] = 'base_graph
if highlight is not None:
if not isinstance(highlight, Sequence):
highlight = [highlight]
elif 'highlight' in style['node']:
if 'highlight' in style['node']:
for highlight_node in highlight:
try:
vis.nodes[highlight_node].update(style['node']['highlight'])
Expand Down

0 comments on commit 9c1583b

Please sign in to comment.