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):

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:

Functions

concise_partition(partition)

One-line shorthand for a partition (for embedding in other cards).

Classes

DirectedBipartition(direction, from_nodes, ...)

A directed bipartition of an index set.

DirectedJointPartition(direction, partition)

A joint partition with a causal direction.

DirectedSetPartition(node_indices, ...[, ...])

A k-way set partition of nodes with per-part directional cuts.

EdgeCut(node_indices, cut_matrix[, node_labels])

An edge cut specified by an explicit binary severance matrix.

JointBipartition(*parts[, node_labels])

A JointPartition with exactly two parts.

JointPartition(*parts[, node_labels])

A joint partition of a (mechanism, purview) pair into k matched parts.

JointTripartition(*parts[, node_labels])

A JointPartition with exactly three parts.

NullCut(indices[, node_labels])

The empty edge cut: no connections severed.

Part(mechanism, purview[, node_labels])

One block of a JointPartition.

TotalCut(node_indices[, node_labels])

The total cut: every connection severed, self-loops included.