
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a dense graph is a
graph
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discret ...
in which the number of edges is close to the maximal number of edges (where every pair of
vertices is connected by one edge). The opposite, a graph with only a few edges, is a sparse graph. The distinction of what constitutes a dense or sparse graph is ill-defined, and is often represented by 'roughly equal to' statements. Due to this, the way that density is defined often depends on the context of the problem.
The graph density of simple graphs is defined to be the ratio of the number of edges with respect to the maximum possible edges.
For undirected
simple graph
In discrete mathematics, particularly in graph theory, a graph is a structure consisting of a Set (mathematics), set of objects where some pairs of the objects are in some sense "related". The objects are represented by abstractions called ''Ver ...
s, the graph density is:
:
For
directed
Direct may refer to:
Mathematics
* Directed set, in order theory
* Direct limit of (pre), sheaves
* Direct sum of modules, a construction in abstract algebra which combines several vector spaces
Computing
* Direct access (disambiguation), a ...
, simple graphs, the maximum possible edges is twice that of undirected graphs (as there are two directions to an edge) so the density is:
:
where is the number of edges and is the number of vertices in the graph. The maximum number of edges for an undirected graph is
, so the maximal density is 1 (for
complete graph
In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices i ...
s) and the minimal density is 0.
For families of graphs of increasing size, one often calls them sparse if
as
. Sometimes, in
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, a more restrictive definition of sparse is used like
or even
.
In this same context, a dense graph may be defined as any graph where is "close" to
.
Upper density
''Upper density'' is an extension of the concept of graph density defined above from finite graphs to infinite graphs. Intuitively, an infinite graph has arbitrarily large finite subgraphs with any density less than its upper density, and does not have arbitrarily large finite subgraphs with density greater than its upper density. Formally, the upper density of a graph is the
infimum
In mathematics, the infimum (abbreviated inf; : infima) of a subset S of a partially ordered set P is the greatest element in P that is less than or equal to each element of S, if such an element exists. If the infimum of S exists, it is unique ...
of the values α such that the finite subgraphs of with density α have a bounded number of vertices. It can be shown using the
Erdős–Stone theorem
In extremal graph theory, the Erdős–Stone theorem is an asymptotic result generalising Turán's theorem to bound the number of edges in an ''H''-free graph for a non-complete graph ''H''. It is named after Paul Erdős and Arthur Stone (mathemati ...
that the upper density can only be 1 or one of the
superparticular ratio
In mathematics, a superparticular ratio, also called a superparticular number or epimoric ratio, is the ratio of two consecutive integer numbers.
More particularly, the ratio takes the form:
:\frac = 1 + \frac where is a positive integer.
Thu ...
s
Sparse and tight graphs
and define a graph as being -sparse if every nonempty subgraph with vertices has at most edges, and -tight if it is -sparse and has exactly edges. Thus
trees
In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, e.g., including only woody plants with secondary growth, only p ...
are exactly the -tight graphs, forests are exactly the -sparse graphs, and graphs with
arboricity are exactly the -sparse graphs.
Pseudoforest
In graph theory, a pseudoforest is an undirected graphThe kind of undirected graph considered here is often called a multigraph or pseudograph, to distinguish it from a simple graph. in which every Connected component (graph theory), connected com ...
s are exactly the -sparse graphs, and the
Laman graphs arising in
rigidity theory are exactly the -tight graphs.
Other graph families not characterized by their sparsity can also be described in this way. For instance the facts that any
planar graph
In graph theory, a planar graph is a graph (discrete mathematics), graph that can be graph embedding, embedded in the plane (geometry), plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. ...
with vertices has at most edges (except for graphs with fewer than 3 vertices), and that any subgraph of a planar graph is planar, together imply that the planar graphs are -sparse. However, not every -sparse graph is planar. Similarly,
outerplanar graphs are -sparse and planar
bipartite graph
In the mathematics, mathematical field of graph theory, a bipartite graph (or bigraph) is a Graph (discrete mathematics), graph whose vertex (graph theory), vertices can be divided into two disjoint sets, disjoint and Independent set (graph theo ...
s are -sparse.
Streinu and Theran show that testing -sparsity may be performed in polynomial time when and are integers and .
For a graph family, the existence of and such that the graphs in the family are all -sparse is equivalent to the graphs in the family having bounded
degeneracy or having bounded
arboricity. More precisely, it follows from a result of that the graphs of arboricity at most are exactly the -sparse graphs. Similarly, the graphs of degeneracy at most are
-sparse graphs.
Sparse and dense classes of graphs
considered that the sparsity/density dichotomy makes it necessary to consider infinite graph classes instead of single graph instances. They defined ''
somewhere dense'' graph classes as those classes of graphs for which there exists a threshold ''t'' such that every complete graph appears as a ''t''-subdivision in a subgraph of a graph in the class. To the contrary, if such a threshold does not exist, the class is ''
nowhere dense''.
[. Properties of the nowhere dense vs somewhere dense dichotomy are discussed by .]
The classes of graphs with bounded degeneracy and of nowhere dense graphs are both included in the
biclique-free graphs, graph families that exclude some
complete bipartite graph
In the mathematical field of graph theory, a complete bipartite graph or biclique is a special kind of bipartite graph where every vertex of the first set is connected to every vertex of the second set..Electronic edition page 17.
Graph theory ...
as a subgraph.
See also
*
Bounded expansion
*
Dense subgraph
Notes
References
*
*
*
*
*
*
*
*
*
*
Further reading
*{{citation, first=Paul E., last=Black, url=https://xlinux.nist.gov/dads/HTML/sparsegraph.html, contribution= Sparse graph, title=Dictionary of Algorithms and Data Structures, publisher=
NIST
The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into physical s ...
, access-date= 29 September 2005
Graph families