ISMAGS.analyze_symmetry(graph, node_partitions, edge_colors)[source]

Find a minimal set of permutations and corresponding co-sets that describe the symmetry of subgraph.


The found permutations. This is a set of frozenset of pairs of node keys which can be exchanged without changing subgraph.

dict[, set[]]

The found co-sets. The co-sets is a dictionary of {node key: set of node keys}. Every key-value pair describes which values can be interchanged without changing nodes less than key.