In
graph theory
In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conne ...
, a ''k''-degenerate graph is an
undirected graph
In discrete mathematics, and more specifically in graph theory, a graph is a structure amounting to a set of objects in which some pairs of the objects are in some sense "related". The objects correspond to mathematical abstractions called '' v ...
in which every subgraph has a vertex of
degree
Degree may refer to:
As a unit of measurement
* Degree (angle), a unit of angle measurement
** Degree of geographical latitude
** Degree of geographical longitude
* Degree symbol (°), a notation used in science, engineering, and mathematics
...
at most ''k'': that is, some vertex in the subgraph touches ''k'' or fewer of the subgraph's edges. The degeneracy of a graph is the smallest value of ''k'' for which it is ''k''-degenerate. The degeneracy of a graph is a measure of how
sparse it is, and is within a constant factor of other sparsity measures such as the
arboricity
The arboricity of an undirected graph is the minimum number of forests into which its edges can be partitioned. Equivalently it is the minimum number of spanning forests needed to cover all the edges of the graph. The Nash-Williams theorem provi ...
of a graph.
Degeneracy is also known as the ''k''-core number, width, and linkage, and is essentially the same as the coloring number or Szekeres–Wilf number (named after ). ''k''-degenerate graphs have also been called ''k''-inductive graphs. The degeneracy of a graph may be computed in
linear time
In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
by an algorithm that repeatedly removes minimum-degree vertices. The
connected components that are left after all vertices of degree less than ''k'' have been (repeatedly) removed are called the ''k''-cores of the graph and the degeneracy of a graph is the largest value ''k'' such that it has a ''k''-core.
Examples
Every finite
forest
A forest is an area of land dominated by trees. Hundreds of definitions of forest are used throughout the world, incorporating factors such as tree density, tree height, land use, legal standing, and ecological function. The United Nations' ...
has either an isolated vertex (incident to no edges) or a leaf vertex (incident to exactly one edge); therefore, trees and forests are 1-degenerate graphs. Every 1-degenerate graph is a forest.
Every finite
planar graph
In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cross ...
has a vertex of degree five or less; therefore, every planar graph is 5-degenerate, and the degeneracy of any planar graph is at most five. Similarly, every
outerplanar graph
In graph theory, an outerplanar graph is a graph that has a planar drawing for which all vertices belong to the outer face of the drawing.
Outerplanar graphs may be characterized (analogously to Wagner's theorem for planar graphs) by the two fo ...
has degeneracy at most two, and the
Apollonian network
In combinatorial mathematics, an Apollonian network is an undirected graph formed by a process of recursively subdividing a triangle into three smaller triangles. Apollonian networks may equivalently be defined as the planar 3-trees, the maxima ...
s have degeneracy three.
The
Barabási–Albert model
The Barabási–Albert (BA) model is an algorithm for generating random scale-free networks using a preferential attachment mechanism. Several natural and human-made systems, including the Internet, the World Wide Web, citation networks, and s ...
for generating
random
In common usage, randomness is the apparent or actual lack of pattern or predictability in events. A random sequence of events, symbols or steps often has no :wikt:order, order and does not follow an intelligible pattern or combination. Ind ...
scale-free networks
A scale-free network is a network whose degree distribution follows a power law, at least asymptotically. That is, the fraction ''P''(''k'') of nodes in the network having ''k'' connections to other nodes goes for large values of ''k'' as
:
P(k ...
is parameterized by a number ''m'' such that each vertex that is added to the graph has ''m'' previously-added vertices. It follows that any subgraph of a network formed in this way has a vertex of degree at most ''m'' (the last vertex in the subgraph to have been added to the graph) and Barabási–Albert networks are automatically ''m''-degenerate.
Every ''k''-regular graph has degeneracy exactly ''k''. More strongly, the degeneracy of a graph equals its maximum vertex degree if and only if at least one of the
connected components of the graph is regular of maximum degree. For all other graphs, the degeneracy is strictly less than the maximum degree.
Definitions and equivalences
The coloring number of a graph ''G'' was defined by to be the least κ for which there exists an ordering of the vertices of ''G'' in which each vertex has fewer than κ neighbors that are earlier in the ordering. It should be distinguished from the
chromatic number
In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices o ...
of ''G'', the minimum number of colors needed to color the vertices so that no two adjacent vertices have the same color; the ordering which determines the coloring number provides an order to color the vertices of G with the coloring number, but in general the chromatic number may be smaller.
The degeneracy of a graph ''G'' was defined by as the least ''k'' such that every
induced subgraph
In the mathematical field of graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges (from the original graph) connecting pairs of vertices in that subset.
Defini ...
of ''G'' contains a vertex with ''k'' or fewer neighbors. The definition would be the same if arbitrary subgraphs are allowed in place of induced subgraphs, as a non-induced subgraph can only have vertex degrees that are smaller than or equal to the vertex degrees in the subgraph induced by the same vertex set.
The two concepts of coloring number and degeneracy are equivalent: in any finite graph the degeneracy is just one less than the coloring number. For, if a graph has an ordering with coloring number κ then in each subgraph ''H'' the vertex that belongs to ''H'' and is last in the ordering has at most κ − 1 neighbors in ''H''. In the other direction, if ''G'' is ''k''-degenerate, then an ordering with coloring number ''k'' + 1 can be obtained by repeatedly finding a vertex ''v'' with at most ''k'' neighbors, removing ''v'' from the graph, ordering the remaining vertices, and adding ''v'' to the end of the order.
A third, equivalent formulation is that ''G'' is ''k''-degenerate (or has coloring number at most ''k'' + 1) if and only if the edges of ''G'' can be oriented to form a
directed acyclic graph
In mathematics, particularly graph theory, and computer science, a directed acyclic graph (DAG) is a directed graph with no directed cycles. That is, it consists of vertices and edges (also called ''arcs''), with each edge directed from one ve ...
with
outdegree
In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs.
Definition
In formal terms, a directed graph is an ordered pai ...
at most ''k''. Such an orientation can be formed by orienting each edge towards the earlier of its two endpoints in a coloring number ordering. In the other direction, if an orientation with outdegree ''k'' is given, an ordering with coloring number ''k'' + 1 can be obtained as a
topological ordering
In computer science, a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge ''uv'' from vertex ''u'' to vertex ''v'', ''u'' comes before ''v'' in the ordering. For in ...
of the resulting directed acyclic graph.
''k''-Cores
A ''k''-core of a graph ''G'' is a
maximal connected subgraph of ''G'' in which all vertices have degree at least ''k''. Equivalently, it is one of the
connected components of the subgraph of ''G'' formed by repeatedly deleting all vertices of degree less than ''k''. If a non-empty ''k''-core exists, then, clearly, ''G'' has degeneracy at least ''k'', and the degeneracy of ''G'' is the largest ''k'' for which ''G'' has a ''k''-core.
A vertex
has ''coreness''
if it belongs to a
-core but not to any
-core.
The concept of a ''k''-core was introduced to study the clustering structure of
social network
A social network is a social structure made up of a set of social actors (such as individuals or organizations), sets of dyadic ties, and other social interactions between actors. The social network perspective provides a set of methods for an ...
s and to describe the evolution of
random graph
In mathematics, random graph is the general term to refer to probability distributions over graphs. Random graphs may be described simply by a probability distribution, or by a random process which generates them. The theory of random graphs li ...
s. It has also been applied in
bioinformatics
Bioinformatics () is an interdisciplinary field that develops methods and software tools for understanding biological data, in particular when the data sets are large and complex. As an interdisciplinary field of science, bioinformatics combi ...
,
network visualization
Graph drawing is an area of mathematics and computer science combining methods from geometric graph theory and information visualization to derive two-dimensional depictions of graphs arising from applications such as social network analysis, car ...
, and resilience of networks in
ecology
Ecology () is the study of the relationships between living organisms, including humans, and their physical environment. Ecology considers organisms at the individual, population, community, ecosystem, and biosphere level. Ecology overlaps wi ...
. A survey of the topic, covering the main concepts, important algorithmic techniques as well as some application domains, may be found in .
Bootstrap percolation In statistical mechanics, bootstrap percolation is a percolation process in which a random initial configuration of active cells is selected from a lattice or other space, and then cells with few active neighbors are successively removed from the a ...
is a random process studied as an
epidemic model
Compartmental models are a very general modelling technique. They are often applied to the mathematical modelling of infectious diseases. The population is assigned to compartments with labels – for example, S, I, or R, (Susceptible, Infectious, ...
and as a model for
fault tolerance
Fault tolerance is the property that enables a system to continue operating properly in the event of the failure of one or more faults within some of its components. If its operating quality decreases at all, the decrease is proportional to the ...
for
distributed computing
A distributed system is a system whose components are located on different computer network, networked computers, which communicate and coordinate their actions by message passing, passing messages to one another from any system. Distributed com ...
. It consists of selecting a random subset of active cells from a
lattice
Lattice may refer to:
Arts and design
* Latticework, an ornamental criss-crossed framework, an arrangement of crossing laths or other thin strips of material
* Lattice (music), an organized grid model of pitch ratios
* Lattice (pastry), an orna ...
or other space, and then considering the -core of the
induced subgraph
In the mathematical field of graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges (from the original graph) connecting pairs of vertices in that subset.
Defini ...
of this subset.
Algorithms
outline an algorithm to derive the degeneracy ordering of a graph
with vertex set and edge set in
time and
space, by storing vertices in a degree-indexed
bucket queue
A bucket queue is a data structure that implements the priority queue abstract data type: it maintains a dynamic collection of elements with numerical priorities and allows quick access to the element with minimum (or maximum) priority. In the bu ...
and repeatedly removing the vertex with the smallest degree. The degeneracy is given by the highest degree of any vertex at the time of its removal.
In more detail, the algorithm proceeds as follows:
*Initialize an output list ''L''.
*Compute a number ''d
v'' for each vertex ''v'' in ''G'', the number of neighbors of ''v'' that are not already in ''L''. Initially, these numbers are just the degrees of the vertices.
*Initialize an array ''D'' such that ''D''
'i''contains a list of the vertices ''v'' that are not already in ''L'' for which ''d
v'' = ''i''.
*Initialize ''k'' to 0.
*Repeat ''n'' times:
**Scan the array cells ''D''
''D''
... until finding an ''i'' for which ''D''
'i''is nonempty.
**Set ''k'' to max(''k'',''i'')
**Select a vertex ''v'' from ''D''
'i'' Add ''v'' to the beginning of ''L'' and remove it from ''D''
'i''
**For each neighbor ''w'' of ''v'' not already in ''L'', subtract one from ''d
w'' and move ''w'' to the cell of D corresponding to the new value of ''d
w''.
At the end of the algorithm, any vertex