In graph theory, the density [1] of a graph is the ratio of its number of edges to the maximum possible number of edges on its vertex set.
Definition
Definition 1 (Density of an undirected graph)
Let be a simple undirected graph with and . The density of is
Definition 2 (Density of a directed graph)
Let be a directed graph with and . Each ordered pair of distinct vertices admits at most one directed edge, so the maximum possible number of edges is , and the density of is
Notation
The density of is denoted .
Properties
The density of satisfies , with for a graph with no edges and for the complete graph. Graphs with density close to are called dense, and those with density close to are called sparse.
References
- [1]
“Dense graph”, Wikipedia, Available: https://en.wikipedia.org/wiki/Dense_graph, Accessed: 2026-07-31 ↩