pyphi.relations.Relation#

class pyphi.relations.Relation(iterable=(), /)[source]#

Bases: Displayable, ToPandasMixin, OrderableByPhi, frozenset

A set of relation faces forming the relation among a set of distinctions.

Ordering compares φ (via OrderableByPhi); equality and hashing are set semantics inherited from frozenset.

property labeled_mechanisms#

The state-labeled mechanism of each relatum, ordered by mechanism index — for display.

Each relatum is rendered as its distinction’s mechanism_label (node labels cased by the mechanism state), falling back to the raw index tuple when a relatum carries no labels.

property purview: frozenset[source]#

The relation purview, the union of the face purviews (Albantakis et al. 2023, Eq. 54).

Its elements are units tagged with their specified states: the units that every relatum’s cause or effect specifies in a common state. For a self-relation, the units its cause and effect specify in a common state.

Type:

frozenset