nocad.components.Condensation#
- class nocad.components.Condensation(labels, dag, sizes, members, nontrivial, sources, sinks)[source]#
Bases:
objectCondensation of a network.
- Attributes:
- labels
ndarrayofshape(N,) Component of every node (topologically ordered labels).
- dag
scipy.sparse.csr_arrayofshape(p,p) Edges between components.
- sizes
ndarrayofshape(p,) Number of nodes in every component.
- members
listofndarray Nodes of every component.
- nontrivial
ndarrayofbool,shape(p,) Component contains a cycle (more than one node, or one node with a self-loop).
- sources, sinks
ndarrayofint Components without incoming / outgoing edges in the condensation.
- labels