How this calculation works
Delete each vertex of an n-vertex graph in turn and retain the induced graph on the other n−1 vertices. The resulting n cards form its vertex-deleted deck. Cards with isomorphic graphs remain repeated, because their multiplicities are part of the data.
Normalize input cards as simple graphs of equal order n−1 and require exactlyn cards including multiplicities. Choose one card and enumerate2^(n−1) attachments of a new vertex. Canonicalize candidate graphs by exhaustive permutations for n≤6; compute full vertex-deleted card multiset, compare canonical card labels with exact multiplicities. Return all nonisomorphic reconstructions; zero means incompatible deck within exact completed search, multiple means ambiguous. Do not claim reconstruction conjecture resolved; n=2 exception expected.A worked example
With the prefilled inputs, reconstructionCount = 1.
Good to know
Compares the full unlabeled card multiset INCLUDING multiplicities; bounded finite reconstruction, not proof of the general conjecture.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
A graph deck is a multiset of vertex-deleted cards
Delete each vertex of an n-vertex graph in turn and retain the induced graph on the other n−1 vertices. The resulting n cards form its vertex-deleted deck. Cards with isomorphic graphs remain repeated, because their multiplicities are part of the data.
Reconstruction asks which original graphs could produce that entire multiset. The submitted labels on a card need not match labels on another card. Comparisons therefore use graph isomorphism, not literal equality of edge strings or a supposed cross-card correspondence of vertex names.
Compare with the Graph isomorphism calculator for two adjacency matrices. Recover graph candidates from an unlabeled multiset of vertex-deleted cards; pairwise isomorphism compares two known graphs instead of reconstructing one.
Check card size and multiplicity before searching
Use the prefilled input structure and preserve the declared column or index order. Every card must be a simple graph with the same declared number of vertices, and the number of cards must be exactly one more than that order. Keep isolated vertices explicitly, because an empty edge list alone cannot reveal whether it describes one, two or several vertices.
Repeated cards cannot be discarded as duplicates. A path on three vertices produces two edge cards and one edgeless two-vertex card. Collapsing the repeated edge card would destroy the deck and could make a valid reconstruction appear inconsistent.
Extend one card by a new vertex
Any original graph must contain the chosen card as a vertex-deleted induced subgraph. It can therefore be generated by adding one new vertex to that card and trying every possible subset of its old vertices as neighbors. This covers all possible originals up to relabeling.
Canonicalize each candidate to avoid reporting isomorphic copies repeatedly. Then delete every candidate vertex, canonicalize its cards and compare the complete multisets. Matching a few summary invariants such as edge counts or degree sequences is useful pruning but not a substitute for the full deck comparison.
Reconstruct the three-vertex path
Use two cards consisting of a single edge and one card consisting of two isolated vertices. The three-vertex path produces exactly these cards: deleting an endpoint leaves an edge, while deleting its middle vertex leaves an edgeless pair.
The card edge counts sum to two. For n at least three, each original edge appears in n−2 cards, so the original has two edges. On three vertices, the only simple graph with two edges is the path, confirming the full reconstruction independently.
Show one original next to all of its cards
A static diagram should place the reconstructed graph above its vertex deletions and label the deleted original vertex for that displayed witness. Equal-looking cards should still appear separately or carry an explicit multiplicity badge. This illustrates why the deck is a multiset.
The result table should group nonisomorphic candidate originals and report how many deck copies of each card type they generate. A reader can compare those counts with the input without needing to infer anything from visual alignment between separately labeled cards.
This bounded enumeration does not settle a conjecture
The general reconstruction conjecture concerns whether graphs on at least three vertices are determined up to isomorphism by their decks. Checking all candidates for one small submitted deck does not prove the general statement. The page should describe only its finite completed search.
Tiny orders deserve separate conventions. On two vertices, the edge graph and edgeless graph have the same deck of two single-vertex cards. Returning both reconstructions there is correct ambiguity, not a failure of the isomorphism routine or a contradiction of the standard conjecture's order restriction.
Empty and inconsistent decks need precise outcomes
No matching original after a complete search means that the supplied cards do not form a valid deck under the accepted simple-graph convention. A work cap instead means reconstruction is unresolved. These outcomes must not share the same empty-results message.
Test multiplicity sensitivity by changing one repeated card, and test label invariance by permuting each card separately. The reconstructed isomorphism types should remain unchanged under relabeling. Those checks exercise the multiset and canonicalization logic more effectively than a single known graph. The public prefill contains three two-vertex edge cards and reconstructs a triangle. The path deck discussed above is a separate multiplicity example with two edge cards and one edgeless card. Both have a single reconstruction, but the candidate edges differ. Equality of that one summary count does not make their input decks interchangeable. Compares the full unlabeled card multiset INCLUDING multiplicities; bounded finite reconstruction, not proof of the general conjecture.
A few questions, answered
Can repeated cards be removed from the input?
No. Their multiplicity is essential information in a vertex-deleted graph deck.
Do card labels need to agree across cards?
No. Cards are compared up to graph isomorphism, so labels can be chosen independently for each card.
Does a unique small reconstruction prove the reconstruction conjecture?
No. It establishes uniqueness only for that submitted deck within the completed finite search.
Why can a two-vertex deck have two answers?
Deleting either vertex from either two-vertex graph leaves a single isolated vertex, so their decks coincide.