pyphi.relations.maximal_relations#

pyphi.relations.maximal_relations(distinctions, atoms=None)[source]#

Return the relations maximal under set inclusion of their relata.

These are the facets of the relation complex: the relations (degree ≥ 2) form a downward-closed family, so every relation’s relata are a subset of some maximal relation’s. A set of distinctions is a relation exactly when it is contained in some Z(n) — the distinctions whose purview-union contains the state-tagged unit n [1] — and each Z(n) is itself a relation, so the maximal relations are the inclusion-maximal elements of {Z(n)}. No relations are enumerated; cost is quadratic in the number of atoms. Self-relations are excluded: the family is not downward-closed into degree 1 (a self-relation’s overlap is the congruent intersection of one distinction’s cause and effect purviews, which can be empty even when the distinction relates strongly to others). For φ_r-ranked relations see Relations.strongest().

Parameters:
  • distinctions (Iterable) – The distinctions generating the relation complex.

  • atoms (collection, optional) – If given, only relations whose overlap contains one of these atoms are considered. If None, all atoms count.

Returns:

ConcreteRelations – The maximal relations, as lazy Relation objects.

References