How this calculation works
Peel a graph from its least connected remaining vertices to find every core number and the graph degeneracy. Nested core sets reveal which vertices survive increasingly demanding local support requirements. The result includes the removal order and degrees at removal, so the decomposition can be checked against the entered edges.
core(v)=largest k with v∈C_k; C_k is the maximal induced subgraph of minimum degree at least k; degeneracy=max_v core(v).A worked example
Triangle 1,2,3 with leaf 4 at 3 and isolate 5: core numbers [2,2,2,1,0], degeneracy 2. Peeling order 5,4,1,2,3 has removal degrees [0,1,2,1,0].
Good to know
Simple undirected graph, 1–100 vertices; exact minimum-degree peeling. Isolates have core zero; no directed/weighted degree convention.
Reference: Method reference (opens in a new tab) ↗
What a core number measures
The k-core is the maximal induced subgraph in which every vertex has at least k neighbors within that same subgraph. The condition is recursive: counting neighbors in the original graph is not enough to determine membership.
A vertex core number is the largest k for which it survives. A high original degree may collapse to a small core number when most neighbors are leaves, while a modest degree can be sustained inside a tightly connected region.
Compare this with the Graph modular decomposition calculator with strong modules. Modules compare external neighborhoods rather than iterative minimum-degree cores.
Peeling and the running degree level
The calculator repeatedly removes a vertex of minimum current degree, breaking ties by vertex label. It records both that current degree and the largest minimum degree encountered so far; the running maximum supplies the removed vertex core number.
The running maximum matters after entering a dense core. Removing one triangle vertex lowers the remaining degrees, but the other triangle vertices still belonged to the same two-core in the original graph and must retain core number two.
Working through the triangle and tail
In the default graph, vertices 1, 2 and 3 form a triangle, vertex 4 is attached to 3, and vertex 5 is isolated. Vertex 5 disappears at degree zero, then the tail vertex disappears at degree one.
The triangle then survives with minimum degree two. The core numbers are 2, 2, 2, 1 and 0, and the degeneracy is two. The one-core contains vertices 1 through 4; the two-core contains exactly the triangle.
Using nested sets responsibly
The displayed core sets are nested: a vertex that survives threshold k plus one also survives threshold k. This provides a practical way to compare a sparse outer region with an internally supported subnetwork without selecting a single arbitrary edge-density cutoff.
Core membership does not require the core to be connected. Two separated triangles both belong to the two-core, so interpreting the entire set as one community or one mutually reachable service area would add an unsupported condition.
What the ordering certifies
The maximum degree encountered at a minimum-degree removal equals the degeneracy. Reading the order forward shows that every vertex has at most that many later neighbors; reversing the order also supports a greedy coloring upper bound of degeneracy plus one.
That coloring implication is an upper bound, not the chromatic number itself. A graph with degeneracy two can be bipartite or require three colors, so the decomposition should not be reported as a minimum-color solution.
Preparing ordinary undirected edges
Enter one through one hundred declared vertices and unique undirected pairs. Isolates should remain in the declared vertex count. Their core number is zero, which is a meaningful result rather than a missing-value code.
The calculator rejects self-loops and duplicate pairs and ignores no declared vertex. Edge strengths, directions and signed relationships require different degree definitions; silently treating those as ordinary neighbor counts can reverse the intended interpretation.
Distinguishing cores from other decompositions
A core describes sustained minimum degree. A module instead groups vertices with matching neighborhoods outside the group, and a connected component records reachability; neither answers the same structural question as iterative degree peeling.
The method is deterministic under the label tie break, but other valid peeling orders may exist. Core numbers and degeneracy remain invariant even when a different tie break changes the displayed removal sequence.
A few questions, answered
Can an isolated vertex belong to a core?
It belongs to the zero-core and has core number zero.
Is a k-core necessarily connected?
No. Several disconnected pieces can meet the same minimum-degree threshold.
Why is a removal degree smaller than a core number?
Earlier deletions can lower the current degree after a higher core level has already been reached.
Is degeneracy a coloring answer?
It gives a greedy coloring upper bound of degeneracy plus one, rather than the exact chromatic number.