pyphi.partition.joint_bipartitions#

pyphi.partition.joint_bipartitions(mechanism, purview, node_labels=None)[source]#

Return a generator of all φ bipartitions of a mechanism over a purview.

Excludes all bipartitions where one half is entirely empty, e.g:

 A     ∅
─── ✕ ───
 B     ∅

is not valid, but

 A     ∅
─── ✕ ───
 ∅     B

is.

Parameters:
  • mechanism (tuple[int]) – The mechanism to partition.

  • purview (tuple[int]) – The purview to partition.

  • node_labels (Any)

Yields:

JointBipartition – Each bipartition, rendered as mech0/purview0 × mech1/purview1 (∅ denotes an empty set).

Return type:

Iterable[JointBipartition]

Examples

>>> from pyphi.models.partitions import concise_partition
>>> mechanism = (0,)
>>> purview = (2, 3)
>>> for partition in joint_bipartitions(mechanism, purview):
...     print(concise_partition(partition))
∅/2 × 0/3
∅/3 × 0/2
∅/2,3 × 0/∅