nocad.components.Condensation#

class nocad.components.Condensation(labels, dag, sizes, members, nontrivial, sources, sinks)[source]#

Bases: object

Condensation of a network.

Attributes:
labelsndarray of shape (N,)

Component of every node (topologically ordered labels).

dagscipy.sparse.csr_array of shape (p, p)

Edges between components.

sizesndarray of shape (p,)

Number of nodes in every component.

memberslist of ndarray

Nodes of every component.

nontrivialndarray of bool, shape (p,)

Component contains a cycle (more than one node, or one node with a self-loop).

sources, sinksndarray of int

Components without incoming / outgoing edges in the condensation.