ArticleslgStudy

science

Dense subgraph

Dense subgraph is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dense subgraph rather than just read about it. In short: In graph theory and computer science, a dense subgraph is a subgraph with many edges per vertex. This is formalized as follows: let G = (V, E) be an undirected graph and let S = (VS, ES) be a subgraph of G.

Dense subgraph — main illustration
Dense subgraph — illustration

Key takeaways

  • Dense subgraph belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dense subgraph to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dense subgraph from memory before moving on to harder problems.

Reference excerpt

In graph theory and computer science, a dense subgraph is a subgraph with many edges per vertex. This is formalized as follows: let G = (V, E) be an undirected graph and let S = (VS, ES) be a subgraph of G. Then the density of S is defined to be:

d(S)=|ES||VS| The density of the maximally dense subgraph of a graph is sometimes referred to as its subgraph density. A subgraph with maximal density can also be seen as a subgraph with maximal average degree in the graph. Subgraph density is asymptotic to the related notion of arboricity and to graph degeneracy.

Densest subgraph The densest subgraph problem is that of finding a subgraph of maximum 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 O(nm log(n2/m)) time. A simple LP for finding the optimal solution was given by Charikar in 2000. Many of the exact algorithms for solving the densest subgraph problem are impractical on real-world data, which has led to the study of approximation algorithms for the densest subgraph problem. A simple 12 approximation for finding the densest subgraph was given by Charikar in 2000, based on a peeling procedure which was first proposed by Asahiro, Iwama, Tamaki, and Tokuyama in 1996 as an approximation algorithm for the densest k subgraph problem. In this algorithm, the vertex with the lowest degree is repeatedly removed, creating an ordering of vertices v1,v2,…,vn, where vi is the ith vertex in the graph to be removed. The subgraph returned by the algorithm is the graph induced by the set Si={vi,vi+1,…,vn} with the highest density. By using the dual of the LP for the exact algorithm he provided, Charikar proved that this procedure runs in linear time and yields a subgraph with at least 50% of the optimal density. Though 50% is a tight bound, in practice, this greedy peeling procedure yields about 80% of the optimal density on real-world graphs. In 2020, Boob et al. gave an iterative peeling algorithm that aims to get closer to the optimal subgraph by repeated the peeling procedure multiple times. Instead of removing the vertices based on their current degree, a load is assigned to each vertex based on data from previous iterations, and vertices are peeled based on their loads. In 2022, Chekuri, Quanrud, and Torres proved that this procedure converges to a (1−ϵ) approximation for the densest subgraph problem after O(Δlog⁡nλ∗ϵ2) iterations of the algorithm, where λ∗ is the optimal density and Δ is the maximum degree in the graph. They also showed that a similar algorithm could be used to find densest hypergraphs.

Densest k subgraph There are many variations on the densest subgraph problem. One of them is the densest k subgraph problem, where the objective is to find the maximum density subgraph on exactly k vertices. This problem generalizes the clique problem and is thus NP-hard in general graphs. There exists a polynomial algorithm approximating the densest k subgraph within a ratio of n1/4+ϵ for every ϵ>0, while it does not admit an n1/polyloglog⁡n-approximation in polynomial time unless the exponential time hypothesis is false. Under a weaker assumption that 𝖭𝖯⊈⋂ϵ>0𝖡𝖯𝖳𝖨𝖬𝖤(2nϵ), no PTAS exists for the problem. The problem remains NP-hard in bipartite graphs and chordal graphs but is polynomial for trees and split graphs. 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.

Densest at most k subgraph The objective of the densest at most k problem is to find the maximum density subgraph on at most k vertices. Andersen and Chellapilla showed that if there exists an α-approximation for this problem then that will lead to an Θ(α2)-approximation for the densest k subgraph problem. Later, this was improved by Khuller and Saha who showed that an α-approximation for densest at most k subgraph implies a 4α-approximation for the densest k subgraph problem.

Densest at least k subgraph The densest at least k problem is defined similarly to the densest at most k subgraph problem. The problem is NP-complete, but admits 2-approximation in polynomial time. Moreover, there is some evidence that this approximation algorithm is essentially the best possible: assuming the small set expansion hypothesis (a computational complexity assumption closely related to the unique games conjecture), then it is NP-hard to approximate the problem to within (2−ϵ) factor for every constant ϵ>0.

K-clique densest subgraph Charalampos Tsourakakis introduced the k-clique densest subgraph problem. This variation of the densest subgraph problem aims to maximize the average number of induced k cliques dk(S)=|Ck(S)||VS|, where Ck(S) is the set of k-cliques induced by S. Notice that the densest subgraph problem is obtained as a special case for k=2. This generalization provides an empirically successful poly-time approach for extracting large near-cliques from large-scale real-world networks.

Locally top-k densest subgraph 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. The set of locally densest subgraphs in a graph can be computed in polynomial time.

References

Further reading

Illustrations

Dense subgraph: An example of a graph .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}G with density dG = 1.375 and its densest subgraph induced by the vertices b, c, d, e and h in red with density 1.4 .
An example of a graph .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}G with density dG = 1.375 and its densest subgraph induced by the vertices b, c, d, e and h in red with density 1.4 .

Worked examples

Example 1 — a first encounter with Dense subgraph

Start with the simplest possible case. Write down what Dense subgraph claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dense subgraph before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dense subgraph ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dense subgraph

In research
Dense subgraph appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dense subgraph in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dense subgraph is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph theory, so understanding it makes those chapters shorter.
In everyday life
Look for Dense subgraph outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dense subgraph” →

How to study Dense subgraph in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dense subgraph means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dense subgraph out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dense subgraph in simple terms?

In graph theory and computer science, a dense subgraph is a subgraph with many edges per vertex. This is formalized as follows: let G = (V, E) be an undirected graph and let S = (VS, ES) be a subgraph of G.

Why does Dense subgraph matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dense subgraph?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dense subgraph.

Tags

  • Graph theory

Keep exploring