Strongly connected components#

Strongly connected components and the condensation of a network.

A strongly connected component (SCC) is a maximal set of nodes in which every node can be reached from every other one. Contracting every SCC to a single node gives the condensation, a directed acyclic graph. Its sources (source or root SCCs, no incoming edges) must contain a driver node, its sinks (sink or top SCCs, no outgoing edges) a sensor node; this is the accessibility half of Lin’s structural controllability theorem.

SCCs, the condensation, source and sink components.

Classes#

Condensation(labels, dag, sizes, members, ...)

Condensation of a network.

Functions#

strongly_connected_components(adj)

Label of the strongly connected component of every node.

components(adj)

MATLAB NOCAD components: component index of every node and component sizes.

condensation(adj)

Contract every strongly connected component to a node.

source_components(adj)

Node sets of the source (root) SCCs: no incoming edge from outside.

sink_components(adj)

Node sets of the sink (top) SCCs: no outgoing edge to the outside.

topological_order(adj)

Order of the nodes in which every edge between components points forward.

is_trivial_component(adj, nodes)

A single node without a self-loop is a trivial component (no cycle inside).