Matjaž Zaveršnik Created 2026-10-18 Updated 2026-11-05
Matjaž Zaveršnik is a mathematician whose work with Vladimir Batagelj includes an efficient algorithm for finding all k-cores of networks. Their paper presents a method whose running time is linear in the number of edges for the networks considered, making the decomposition practical on large inputs.[ref] The key structural object is a k-core: a maximal induced subgraph whose minimum degree is at least . Assigning each vertex its largest such provides a compact description of its position within nested connected regions; a high value records local connectivity rather than merely a large original degree.
Repeatedly remove vertices whose current degree is less than . Implement the deletions with an adjacency list, a queue and a degree counter for each active vertex:
active[v] = True for every v
count[v] = degree(v)
queue all v with count[v] < k
while the queue is nonempty:
    remove v from the queue
    if not active[v]: continue
    active[v] = False
    for each neighbour u of v:
        if active[u]:
            count[u] -= 1
            if count[u] == k-1: queue u
return the subgraph induced by the active vertices,
       or report failure if there is no active vertex
The requested subgraph is understood to be nonempty; otherwise an empty output would make the degree requirement vacuous or undefined. For , any nonempty input graph already qualifies.
The correctness invariant is that every subgraph with minimum degree at least has all its vertices still active. Initially this is immediate. When is deleted, its degree in the whole active induced subgraph is less than . Any candidate subgraph on active vertices has at most that many incident edges at , so cannot contain it. Thus the invariant survives every deletion.
At termination, every active vertex has current degree at least , since every counter initially below the threshold or subsequently crossing it was queued. A nonempty surviving induced subgraph is therefore a valid answer. If none survives, the invariant rules out every possible answer, including ones omitting additional edges. The result is the k-core, with the k-core peeling invariant proving that deletion order cannot destroy a valid solution.
Each vertex is enqueued at most once when initially deficient or first crossing the threshold. Each adjacency list is scanned once when its vertex is deleted. The running time is , and storage is including the input graph.
Vladimir Batagelj Created 2026-10-18 Updated 2026-11-05
Vladimir Batagelj is a mathematician whose work includes graph algorithms and the analysis of large networks. With Matjaž Zaveršnik, he developed an efficient algorithm for finding all k-cores of a network, a way to reveal nested regions of increasing internal connectivity.[ref] A k-core is a maximal induced subgraph in which every vertex has degree at least . Repeatedly removing vertices of insufficient degree exposes this structure. The decomposition helps distinguish densely connected parts of a network from peripheral vertices without requiring an exhaustive search through all vertex subsets.