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.