Expand description
Graph traversal algorithms for sparse graphs
This module provides breadth-first search (BFS) and depth-first search (DFS) algorithms for sparse matrices representing graphs.
Enums§
- Traversal
Order - Traversal order types
Functions§
- bfs_
distances - Compute distances from a source vertex using BFS
- breadth_
first_ search - Breadth-first search traversal
- depth_
first_ search - Depth-first search traversal
- depth_
first_ search_ recursive - Recursive depth-first search traversal
- has_
path - Check if there is a path between two vertices
- reachable_
vertices - Find all vertices reachable from a source vertex
- topological_
sort - Topological sort of a directed acyclic graph (DAG)
- traversegraph
- Perform graph traversal from a starting vertex