Skip to content

Commit

Permalink
Added note about edge bfs behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWeber42 committed Jun 20, 2024
1 parent c2d6676 commit c5fa505
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dace/sdfg/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ def __len__(self) -> int:

def edge_bfs(self, node: Union[NodeT, Sequence[NodeT]], reverse: bool = False) -> Iterable[Edge[EdgeT]]:
"""Returns a generator over edges in the graph originating from the
passed node in BFS order"""
passed node in BFS order.
:note: All edges are yielded including back edges
"""
if isinstance(node, (tuple, list)):
queue = deque(node)
else:
Expand Down

0 comments on commit c5fa505

Please sign in to comment.