How this calculation works
Enumerate all completed automorphisms of a small simple graph and return its group order, vertex orbits and edge orbits.
Aut(G)={p∈S_n: A_uv=A_p(u),p(v)}; orbit(v)={p(v):p∈Aut(G)}.A worked example
The four-cycle has four choices for the image of vertex 0 and two choices for its neighbor: 4×2=8 automorphisms. All vertices form one orbit.
Good to know
Simple undirected graphs on 1–10 vertices; zero-based labels, no loops, parallel pairs, colors or weights. Degree/signature pruning and exact enumeration with 2,000,000 partial-state cap. At most 24 sample permutations displayed; full count and orbits only after enumeration completes. Cutoff means unresolved, not a smaller group.
Reference: NetworkX: graph-isomorphism mappings (opens in a new tab) ↗
Symmetries that preserve adjacency
An automorphism permutes the vertices of one graph while preserving every adjacency and every nonadjacency. It therefore preserves the complete combinatorial structure, including disconnected components and isolated vertices. The group order counts all such permutations, including the identity that leaves every vertex unchanged.
A visually symmetric drawing can suggest candidates, but the coordinates of a drawing are not inputs here. Moving points on the screen cannot create or destroy an automorphism. What matters is whether the proposed relabeling reproduces exactly the same zero-one adjacency relation.
Compare this with the Graph isomorphism calculator for two adjacency matrices. Enumerate a graph's self-isomorphisms and vertex/edge orbits, instead of finding an isomorphism between two graphs.
Enter the complete vertex universe
Declare n first and label vertices from zero through n minus one. Then enter each undirected edge exactly once. An omitted label still represents an isolated vertex when it lies in that declared range, which can change the symmetry group substantially.
For example, two isolated vertices may be exchanged even when neither appears in the edge list. Deleting them from the declared universe would answer a different question. Loops, repeated unordered pairs, directed arcs and edge weights are excluded so that every accepted input has one unambiguous simple-graph interpretation.
How candidate permutations are checked
The search begins by matching vertices with the same degree and neighboring-degree signature. These invariants eliminate impossible images without excluding a genuine symmetry. A partial mapping is extended only when its newly assigned vertex has the correct adjacency relation to every previously assigned vertex.
Once all vertices are assigned, the mapping is a bijection and every pair has been checked. It is then counted and used to merge vertex and edge orbit classes. The calculator stores only a small sample of permutations for readability; the complete count does not come from counting that displayed sample.
A square has eight automorphisms
The default graph is the four-cycle with edges 0–1, 1–2, 2–3 and 3–0. Choose an image for vertex zero in four ways. Its neighbor vertex one can then go to either neighbor of that image, giving two possibilities for each first choice.
The remaining two images are forced, so the group order is four times two, or eight. These are the four rotations and four reflections of the abstract cycle. All four vertices belong to one orbit, and all four edges also belong to one orbit under those eight mappings.
Read orbits as interchangeable positions
A vertex orbit contains precisely the positions that some automorphism can exchange. Vertices in different orbits cannot be equivalent under a symmetry of this graph, even when they happen to share the same degree. Equal degree is a necessary screening condition, not a complete equivalence test.
Edge orbits apply the same idea to unordered endpoint pairs. A graph can be vertex-transitive while having multiple edge orbits, so the two outputs should be inspected separately. An orbit says that the entered structure does not distinguish its members; it does not establish that real-world objects represented by those members are identical.
Why the search may stop unresolved
The supported universe contains at most ten vertices, but symmetry can make enumeration expensive even at that size. A complete graph admits every vertex permutation, so many candidate mappings survive all local tests. A fixed search-state cap prevents an unexpectedly long calculation from blocking the browser.
Reaching that cap produces an explicit error rather than a smaller group order. The permutations encountered before a cutoff are not the full automorphism group, and partial orbit classes may later merge. A completed result is therefore qualitatively different from a timed-out enumeration; no negative or optimality claim is made after exhaustion.
Audit a returned permutation yourself
Read a displayed mapping as old vertex i becoming the entry in position i. Verify that every label occurs exactly once, then replace the endpoints of each original edge using that mapping. Sorting each new pair should reproduce the same unordered edge set.
For the square, mapping [1,2,3,0] is a quarter-turn and mapping [0,3,2,1] is a reflection. Both pass the edge-set check. In contrast, merely swapping two adjacent square vertices while fixing the other two creates a diagonal image and fails. This small certificate check is independent of the drawing and the enumeration order.
A few questions, answered
Does the drawing determine the symmetries?
No. Only the entered adjacency relation determines graph automorphisms; drawing coordinates are irrelevant.
Why are only 24 permutations displayed?
The complete count uses every completed mapping, while the displayed sample is limited to keep the result readable.
Are equal-degree vertices always in one orbit?
No. Equal degree is necessary for an automorphism image but does not prove that a structure-preserving permutation exchanges them.
What does an unresolved cap mean?
The enumeration did not finish, so neither the complete group order nor final orbit partition is claimed.