Expand description
Graph algorithms.
It is a goal to gradually migrate the algorithms to be based on graph traits
so that they are generally applicable. For now, some of these still require
the Graph
type.
Modules§
- dominators
- Compute dominators of a control-flow graph.
Structs§
- Cycle
- An algorithm error: a cycle was found in the graph.
- DfsSpace
- Workspace for a graph traversal.
- MinSpanning
Tree - An iterator producing a minimum spanning forest of a graph.
- Negative
Cycle - An algorithm error: a cycle of negative weights was found in the graph.
Traits§
- Float
Measure - A floating-point measure.
- Measure
- Associated data that can be used for measures (such as length).
Functions§
- astar
- [Generic] A* shortest path algorithm.
- bellman_
ford - [Generic] Compute shortest paths from node
source
to all other. - condensation
- Graph Condense every strongly connected component into a single node and return the result.
- connected_
components - [Generic] Return the number of connected components of the graph.
- dijkstra
- [Generic] Dijkstra’s shortest path algorithm.
- has_
path_ connecting - [Generic] Check if there exists a path starting at
from
and reachingto
. - is_
cyclic_ directed - [Generic] Return
true
if the input directed graph contains a cycle. - is_
cyclic_ undirected - [Generic] Return
true
if the input graph contains a cycle. - is_
isomorphic - Graph Return
true
if the graphsg0
andg1
are isomorphic. - is_
isomorphic_ matching - Graph Return
true
if the graphsg0
andg1
are isomorphic. - kosaraju_
scc - [Generic] Compute the strongly connected components using Kosaraju’s algorithm.
- min_
spanning_ tree - [Generic] Compute a minimum spanning tree of a graph.
- scc
Deprecated - Renamed to
kosaraju_scc
. - tarjan_
scc - [Generic] Compute the strongly connected components using Tarjan’s algorithm.
- toposort
- [Generic] Perform a topological sort of a directed graph.
- with_
dfs 🔒 - Create a Dfs if it’s needed