Dense graph


In mathematics, a dense graph is a graph in which the number of edges is close to the maximal number of edges. The opposite, a graph with only a few edges, is a sparse graph. The distinction between sparse and dense graphs is rather vague, and depends on the context.
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 graphs, the graph density is:
For directed simple graphs, the maximum possible edges is twice that of undirected graphs to account for the directedness, so the density is:
where E is the number of edges and V is the number of vertices in the graph. The maximum number of edges for an undirected graph is, so the maximal density is 1 and the minimal density is 0.

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 G is the infimum of the values α such that the finite subgraphs of G with density α have a bounded number of vertices. It can be shown using the Erdős–Stone theorem that the upper density can only be 1 or one of the superparticular ratios 0, 1/2, 2/3, 3/4, 4/5,... n/,....

Sparse and tight graphs

and define a graph as being -sparse if every nonempty subgraph with n vertices has at most knl edges, and -tight if it is -sparse and has exactly knl edges. Thus trees are exactly the -tight graphs, forests are exactly the -sparse graphs, and graphs with arboricity k are exactly the -sparse graphs. Pseudoforests 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 with n vertices has at most 3n - 6 edges, 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 graphs are -sparse.
Streinu and Theran show that testing -sparsity may be performed in polynomial time when k and l are integers and 0 ≤ l < 2k.
For a graph family, the existence of k and l 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 a are exactly the -sparse graphs. Similarly, the graphs of degeneracy at most d are exactly the -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 in.
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 as a subgraph.