Module dfir_lang::graph::graph_algorithms
source · Expand description
General graph algorithm utility functions
Functions§
- Finds the strongly connected components in the graph. A strongly connected component is a subset of nodes that are all reachable by each other.
- Topologically sorts a set of nodes. Returns a list where the order of
Id
s will agree with the order of any path through the graph. - Computes the topological sort of the nodes of a possibly cyclic graph by ordering strongly connected components together.