Open
Description
Is there a way to run a BFS search on a directed graph, but traversing edges in either direction (essentially treating it as an undirected graph)? My use case is that the directions on edges are more like edge orientations than traversal limitations - they indicate the meaning of positive or negative flow on that edge, but are otherwise unimportant to adjacency.
Also, would it be possible to add an example or two of doing a BFS (and/or DFS) traversal on a graph? I'm not quite seeing how to use the bfs_parents
and bfs_tree
methods in practice.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels