We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647d5d7 commit f7f668eCopy full SHA for f7f668e
graphtik/network.py
@@ -692,9 +692,10 @@ def prune(
692
# To discover which ones to prune, we break their incoming edges
693
# and they will drop out while collecting ancestors from the outputs.
694
#
695
- for given in inputs:
696
- broken_edges.update(broken_dag.in_edges(given))
697
- broken_dag.remove_edges_from(broken_edges)
+ if inputs:
+ for given in inputs:
+ broken_edges.update(broken_dag.in_edges(given))
698
+ broken_dag.remove_edges_from(broken_edges)
699
700
# Drop stray input values and operations (if any).
701
if outputs is not None:
0 commit comments