Skip to content

Commit 4aca013

Browse files
committed
FIX(plot): failing if steps not a list/ is none...
backported from #29
1 parent 3a87959 commit 4aca013

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graphkit/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_node_name(a):
3333
kw = {}
3434
if isinstance(nx_node, str):
3535
# Only DeleteInstructions data in steps.
36-
if nx_node in steps:
36+
if steps and nx_node in steps:
3737
kw = {"color": "red", "penwidth": 2}
3838

3939
# SHAPE change if in inputs/outputs.
@@ -129,7 +129,7 @@ def plot_graph(
129129
130130
ARROWS
131131
132-
- **solid black arrows**: dependencies (source-data are``need``\ed
132+
- **solid black arrows**: dependencies (source-data are``need``-ed
133133
by target-operations, sources-operations ``provide`` target-data)
134134
- **dashed black arrows**: optional needs
135135
- **green-dotted arrows**: execution steps labeled in succession

0 commit comments

Comments
 (0)