Skip to content

Commit

Permalink
actually use path_to
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Jul 25, 2020
1 parent 05bb205 commit 4885b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrogen/graph.py
Expand Up @@ -705,7 +705,7 @@ def subgraph(self, *nodes: Node, context: bool = True, path_to: Iterable[Node] =

subgraph: nx.MultiDiGraph = nx.subgraph(self.base, relevant_nodes).copy()
sources = set(path_from).union(paths)
targets = set(path_from).union(paths)
targets = set(path_to).union(paths)

if paths_without_timeline:
path_base = remove_edges(self.dag, lambda u, v, attr: attr.get('kind') == 'timeline')
Expand Down

0 comments on commit 4885b30

Please sign in to comment.