Functions
Link copied to clipboard
Link copied to clipboard
fun <V> stronglyConnectedComponents(graph: DirectedGraph<V, *>, includeSingletons: Boolean): Set<Set<V>>
Computes the strongly connected components of a given directed graph using Tarjan's algorithm. A strongly connected component (SCC) is a maximal subgraph where every vertex is reachable from every other vertex in the same subgraph.
Link copied to clipboard
fun <V, E> stronglyConnectedSubgraphs(graph: DirectedGraph<V, E>, includeSingletons: Boolean): List<DirectedGraph<V, E>>
Identifies strongly connected subgraphs within the given directed graph.