From 6577704373b7936e55f102eb5f72f2a0e68e37c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= <147368808+philip-paul-mueller@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:38:02 +0100 Subject: [PATCH] Fixed the `{in,out}_edges()` function of the `DiGraph` class. (#1527) The function ignored their `node` argument, thus they always returned all edges. --- dace/sdfg/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dace/sdfg/graph.py b/dace/sdfg/graph.py index 5c93149529..91ed698896 100644 --- a/dace/sdfg/graph.py +++ b/dace/sdfg/graph.py @@ -526,10 +526,10 @@ def edges(self): return [DiGraph._from_nx(e) for e in self._nx.edges()] def in_edges(self, node): - return [DiGraph._from_nx(e) for e in self._nx.in_edges()] + return [DiGraph._from_nx(e) for e in self._nx.in_edges(node, True)] def out_edges(self, node): - return [DiGraph._from_nx(e) for e in self._nx.out_edges()] + return [DiGraph._from_nx(e) for e in self._nx.out_edges(node, True)] def add_node(self, node): return self._nx.add_node(node)