Skip to main content

Module graph_ops

Module graph_ops 

Source
Expand description

Graph operations using GraphBackend trait

Backend-agnostic implementations of shortest path, SCC, topological sort.

Structs§

SccResult
Result of strongly connected components computation.

Functions§

bfs
BFS traversal that returns nodes at exactly the specified depth.
shortest_path
Finds the shortest path between two nodes using BFS.
strongly_connected_components
Computes strongly connected components using Tarjan’s algorithm.
topological_sort
Performs topological sort using Kahn’s algorithm.