pyphi.models.partitions#
Partition and edge-cut value types.
Two distinct mathematical concepts share this module’s
_PartitionBase interface:
Vertex partitions (IIT 4.0 paper terminology):
DirectedBipartition— a directed bipartition of an index set (Θ(S), Eq. 14-18). Stores(direction, from_nodes, to_nodes).JointPartition— a sequence ofPartblocks, each a(mechanism, purview)pair (Θ(M,Z), Albantakis et al. 2023, Eq. 38). SubclassesJointBipartition(k=2) andJointTripartition(k=3, wedge constraint).DirectedJointPartition— aJointPartitiontogether with aDirection, used for AC (Ψ, Eq. 7 of Albantakis et al. 2019) and for disintegrating partitions (Θ(M,Z), Eq. 38 of IIT 4.0).DirectedSetPartition— a k-way set partition with per-part direction.
Edge cuts (graph theory terminology):
EdgeCut— an explicit n by n binary severance matrix.TotalCut— all edges severed (boundary).NullCut— no edges severed (identity).
A vertex partition induces an edge cut: every concrete
_PartitionBase exposes cut_matrix(n)() returning the
binary matrix of severed connections. apply_cut(cm)() applies
the induced cut to a connectivity matrix.
The boundary classes (CompleteJointPartition,
AtomicJointPartition) live in pyphi.partition alongside
the partition generators.
Use-case mapping:
IIT 3.0 / IIT 4.0 SIA partitioning →
DirectedBipartitionandDirectedSetPartition(via theDIRECTED_BI,SET_UNI/BI, etc. scheme registries).IIT 4.0 system SIA general scheme →
EdgeCut(matrix-based).IIT 4.0 mechanism MIP search →
JointPartitionand subclasses (via theBI,TRI,ALLmechanism partition schemes).Actual causation distinction finding →
DirectedJointPartition.
Functions
|
One-line shorthand for a partition (for embedding in other cards). |
Classes
|
A directed bipartition of an index set. |
|
A joint partition with a causal direction. |
|
A k-way set partition of nodes with per-part directional cuts. |
|
An edge cut specified by an explicit binary severance matrix. |
|
A |
|
A joint partition of a (mechanism, purview) pair into k matched parts. |
|
A |
|
The empty edge cut: no connections severed. |
|
One block of a |
|
The total cut: every connection severed, self-loops included. |