pyphi.models.partitions.DirectedJointPartition#

class pyphi.models.partitions.DirectedJointPartition(direction, partition, node_labels=None)[source]#

Bases: Displayable, _PartitionBase

A joint partition with a causal direction.

Wraps a JointPartition with a Direction. Corresponds to disintegrating partitions Θ(M,Z) in IIT 4.0 Eq. 38 and to AC partitions ψ in Albantakis et al. 2019 Eq. 7.

Variables:
  • direction (Direction) – Causal direction of the induced edge cut.

  • partition (JointPartition) – The joint partition (sequence of (mechanism, purview) parts).

  • node_labels (NodeLabels or None) – Optional labels for pretty-printing.

Parameters:
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]]