pyphi.models.partitions.NullCut#

class pyphi.models.partitions.NullCut(indices, node_labels=None)[source]#

Bases: Displayable, _PartitionBase

The empty edge cut: no connections severed.

Parameters:
property is_null: bool#

True if this partition severs no connections.

property indices: tuple[int, ...]#

Indices of the partitioned nodes.

cut_matrix(n)[source]#

Return the binary edge-cut matrix induced by this partition.

cut_matrix[a, b] == 1 iff the directed connection a→b is severed.

Parameters:

n (int) – The size of the substrate.

Return type:

ndarray[tuple[Any, …], dtype[int64]]

removed_edges()[source]#

The set of directed edges (from, to) this partition severs.

Default derivation from cut_matrix(); concrete subclasses override with an equivalent structural form that avoids materializing the full n x n matrix. The two forms agree.

Return type:

frozenset[tuple[int, int]]