[ library(graph_algorithms) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]
Computes the connected components of graph
- a graph structure
- a list of lists of node numbers
Computes the connected components of a (bidirected) graph. Each resulting
connected component is represented as an (unsorted) list of nodes.
This operation is only defined on bidirected graphs.
The runtime complexity is O(Nnodes + Nedges).
Modes and Determinism
- connected_components(+, -) is det
graph_is_bidirected / 1, articulation_points / 2