In graph theory and computer science, a dense subgraph is a subgraph with many edges per vertex. This is formalized as follows: let be an undirected graph and let be a subgraph of . Then the density of is defined to be:
d(S)={|ES|\over|VS|}
The densest subgraph problem is that of finding a subgraph of maximum density. The density of the maximally dense subgraph of a graph is sometimes referred to as its subgraph density. In 1984, Andrew V. Goldberg developed a polynomial time algorithm to find the maximum density subgraph using a max flow technique. This has been improved by Gallo, Grigoriadis and Tarjan in 1989 to run in time. A simple LP for finding the optimal solution was given by Charikar in 2000.
Subgraph density is asymptotic to the related notion of arboricity and to graph degeneracy.
There are many variations on the densest subgraph problem. One of them is the densest subgraph problem, where the objective is to find the maximum density subgraph on exactly vertices. This problem generalizes the clique problem and is thus NP-hard in general graphs. There exists a polynomial algorithm approximating the densest subgraph within a ratio of
n1/4
\epsilon>0
n1/\operatorname{polyloglogn}
NP\nsubseteqcap\epsilon
n\epsilon | |
BPTIME(2 |
)
The problem remains NP-hard in bipartite graphs and chordal graphs but is polynomial for trees and split graphs.[4] It is open whether the problem is NP-hard or polynomial in (proper) interval graphs and planar graphs; however, a variation of the problem in which the subgraph is required to be connected is NP-hard in planar graphs.[5]
The objective of the densest at most
k
k
\alpha
\Theta(\alpha2)
k
\alpha
k
4\alpha
k
The densest at least
k
k
(2-\epsilon)
\epsilon>0
Charalampos Tsourakakis introduced the
k
k
dk(S)={|Ck(S)|\over|VS|}
Ck(S)
k
S
k=2
Qin et al. introduced the problem of top-k locally densest subgraphs discovery in a graph, each of which achieves the highest density in its local region in the graph: it is neither contained in any supergraph with the same or larger density, nor it contains subgraphs with density being loosely connected with the rest of the local densest subgraph. Note that the densest subgraph problem is obtained as a special case for
k=1