Traversal¶
Depth First Search¶
Basic algorithms for depth-first searching the nodes of a graph.
|
Iterate over edges in a depth-first-search (DFS). |
|
Returns oriented tree constructed from a depth-first-search from source. |
|
Returns dictionary of predecessors in depth-first-search from source. |
|
Returns dictionary of successors in depth-first-search from source. |
|
Generate nodes in a depth-first-search pre-ordering starting at source. |
|
Generate nodes in a depth-first-search post-ordering starting at source. |
|
Iterate over edges in a depth-first-search (DFS) labeled by type. |
Breadth First Search¶
Basic algorithms for breadth-first searching the nodes of a graph.
|
Iterate over edges in a breadth-first-search starting at source. |
|
Returns an oriented tree constructed from of a breadth-first-search starting at source. |
|
Returns an iterator of predecessors in breadth-first-search from source. |
|
Returns an iterator of successors in breadth-first-search from source. |
Beam search¶
Basic algorithms for breadth-first searching the nodes of a graph.
|
Iterates over edges in a beam search. |