pyphi.automorphism.substrate_canonical_form#

pyphi.automorphism.substrate_canonical_form(substrate)[source]#

Return (canonical_substrate, canonical_permutation).

canonical_substrate is the lexicographically smallest relabeling of substrate; canonical_permutation is the smallest permutation attaining it (unique by construction).

Parameters:

substrate (Substrate)

Return type:

tuple[Substrate, tuple[int, …]]