- Introduced by
- Stephen B. Seidman
- Year
- 1983
- Type
- Graph pruning and hierarchical decomposition
- Family
- Network structure
What does it do?
k-Core Decomposition is a graph-theoretic method that assigns each vertex of a network a coreness number, based on a nested sequence of subgraphs called k-cores.
A k-core is the maximal subgraph in which every vertex has at least k neighbors within that subgraph, so the k-cores are nested: each one lies inside the core of lower order. Introduced by Stephen B. Seidman in 1983, the method partitions the vertices into shells, and a vertex's coreness reflects how deeply it sits in this hierarchy.
The intuition behind the method
Imagine peeling an onion layer by layer. Choose a threshold k and remove every node that has fewer than k connections to the nodes still remaining. Removing nodes can leave others with fewer connections, so repeat until no such node is left. Then raise the threshold and repeat. The nodes that survive the longest, at the very center, are the most deeply embedded in the network's dense core. Coreness measures how deep into this nested structure each node sits.
History
Stephen B. Seidman introduced the k-core concept in a 1983 paper in Social Networks, titled "Network structure and minimum degree." The concept concerns subgraphs in which every vertex has at least a given minimum degree, and the decomposition follows from the nesting of these subgraphs.
When to use it
Choose k-core decomposition when the question concerns cohesive, nested groups or the relative structural depth of vertices, for example when locating the densely connected core of a network or when degree alone is too coarse to separate nodes. It suits large sparse undirected networks, where the algorithm runs in time linear in the number of edges. Do not use it when vertices should belong to several overlapping communities, because each vertex receives a single coreness value and a single shell. It also ignores edge weights and direction unless a weighted or directed variant is chosen explicitly, and such variants require their own conventions. If the goal is an exact densest subgraph or a clique-level cohesion guarantee, a different measure is needed, since the maximum-coreness core only approximates the densest subgraph.
Limitations and considerations
- Does not detect overlapping communities; each vertex belongs to exactly one shell.
- Ignores edge weights and directionality unless the method is explicitly extended to weighted or directed graphs.
- Coreness is determined only by minimum-degree pruning, so many structurally different vertices can share the same value, which reduces discrimination in homogeneous networks.
- The maximum-coreness core can be a small, densely interconnected set, so the top of the hierarchy offers little resolution among its own members.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Runs in O(m) time, where m is the number of edges, for the standard bucket-based peeling algorithm, so it remains practical for large networks.
- Requires no tuning parameter: the nested cores follow directly from the minimum-degree condition applied to the graph.
- The output is one integer per vertex (its coreness) plus the shell partition, which can be compared across nodes or used directly as a node feature.
- The decomposition is unique for a given graph: the final coreness values do not depend on the order in which low-degree vertices are removed.
Applications
- Ranking candidate spreaders in epidemic and information diffusion models on social networks.
- Describing the hierarchical structure of the internet at the autonomous-system level.
- Locating densely connected protein complexes and functional modules in protein-interaction networks.
- Visualizing the core-periphery architecture of citation and collaboration networks in bibliometrics.
- Pruning peripheral nodes before applying computationally expensive community detection algorithms.
How it works
How it works
Begin by computing the degree of every vertex, that is, the number of edges incident to it. These degrees are the starting condition for the pruning process. A vertex whose degree is below k cannot belong to the k-core, so the initial degree vector determines which vertices are candidates for the lowest-order cores.
Formula
\deg(v) = |\{u \in V : (u,v) \in E\}|For each successive value of k, starting from 1, repeatedly remove all vertices whose current degree within the remaining subgraph falls below k. After each removal, update the degrees of the neighboring vertices. Continue until no vertex with degree less than k remains; the surviving subgraph is the k-core C_k.
Formula
C_k = \{v \in V : \deg_{G[C_k]}(v) \geq k\}The coreness of a vertex v is the largest k for which v belongs to the k-core, that is, the maximum k such that v survives all pruning rounds up to round k. This integer summarizes each vertex's structural depth in the hierarchy.
Formula
\text{core}(v) = \max\{k : v \in C_k\}The k-shell S_k is the set of vertices that belong to the k-core but not to the (k+1)-core. Because each vertex lies in exactly one shell, the shells partition the vertex set. Higher-index shells contain the more deeply embedded vertices, and lower-index shells contain the peripheral, more loosely connected ones.
Formula
S_k = C_k \setminus C_{k+1}Common pitfalls
- Treating high coreness as evidence of importance without checking that the network's structure makes a depth-based interpretation meaningful.
- Applying the undirected algorithm to a directed network without stating a symmetrization rule (for example, how reciprocal and one-way arcs are treated); the rule changes the coreness values and must be reported.
- Confusing the k-core with the k-clique or k-plex: a k-core requires only that each vertex has at least k neighbors within the core, not all-to-all connections.
- Assuming that each k-core is one cohesive group: a k-core can itself be disconnected, so a high-k core may contain several separate groups, and the connectivity of each core should be checked before interpretation.
Frequently asked questions
How does coreness differ from degree centrality?
Degree centrality counts only a vertex's direct neighbors without regard to how those neighbors are connected among themselves. Coreness, by contrast, measures structural depth: a vertex can have high degree but low coreness if its neighbors are all peripheral. Coreness therefore captures local density and cohesion beyond what a single-step neighbor count can reveal.
Can k-core decomposition be applied to weighted graphs?
The classical algorithm works on unweighted graphs. For weighted graphs, researchers have proposed weighted coreness measures that replace the degree condition with a weighted degree or strength threshold. However, these extensions require careful threshold selection and are not universally standardized, so results should be interpreted with reference to the specific variant used.
Is the k-core the same as the densest subgraph?
Not necessarily. The innermost k-core — the core with the highest k value — is often close to the densest subgraph, and in some graph families the two coincide. However, the densest subgraph maximizes average degree over all possible subsets, which is a different optimization criterion. The k-core with maximum k is a good approximation but not an exact solution to the densest subgraph problem in general.
Related methods
Sources
Seidman, S. B. (1983). Network structure and minimum degree. Social Networks, 5(3), 269–287.
Open DOI reference