Discovering Nested Communities

Nikolaj Tatti, Aristides Gionis

TL;DR

This paper introduces a novel method for discovering "nested communities" in graphs, where communities are structured as a sequence of increasingly inclusive and less dense subgraphs. By decomposing the problem into vertex ordering and sequence segmentation, they offer an efficient algorithm that outperforms existing methods in finding meaningful community structures.

What Problem Does This Paper Address?

Community detection is a fundamental problem in graph analysis, aiming to find tightly connected groups of nodes. However, many real-world graphs lack a clear, single community structure. In such cases, traditional methods struggle, facing an ill-posed problem of choosing between a small, dense community or a larger, sparser one. This ambiguity arises because the optimal balance between size and density often depends on the specific application. To address this, the authors propose discovering a sequence of nested communities, starting from a given set of source vertices and expanding outwards, with each subsequent community being a denser subgraph of the next. This approach avoids the arbitrary choice of a single community and provides a more nuanced view of graph structure.

Methods

The core of the paper's contribution lies in its algorithmic approach, which breaks down the complex problem of finding nested communities into two manageable subproblems:

  1. Vertex Ordering: The authors propose a heuristic called SORTVERTICES that iteratively removes the vertex with the lowest weighted degree. This ordering is crucial because it aims to arrange vertices such that subgraph densities naturally decrease along the sequence. They provide theoretical backing for why this ordering is effective, connecting it to properties of optimal solutions.
  2. Sequence Segmentation: Once an order of vertices is established, the problem of finding the nested community sequence is framed as a "monotonic segmentation" problem. This is a variation of standard sequence segmentation where not only is the variance within segments minimized, but the density scores of consecutive segments must also decrease monotonically. This subproblem can be solved efficiently using dynamic programming, specifically by adapting algorithms like the "pool of adjacent violators" (PAV).

The overall algorithm combines these two steps: first, it generates an order of vertices using SORTVERTICES, and then it applies the monotonic segmentation algorithm to find the optimal nested community sequence respecting that order.

Datasets

The authors evaluated their method on six real-world datasets:

  • Adjnoun: Adjacency graph of common adjectives and nouns from Charles Dickens' David Copperfield.
  • Dolphins: An undirected social graph of dolphin friendships.
  • Karate: A social graph of friendships within a US university karate club.
  • Lesmis: A coappearance graph of characters from Victor Hugo's Les Miserables.
  • Polblogs: A directed graph of hyperlinks between US politics weblogs.
  • DBLP: A coauthorship graph of researchers in computer science.

They also mention using a bibliographic dataset from DBLP.

Key Insights and Ideas

  • Nested Communities as a Solution to Ambiguity: The core insight is that by looking for a sequence of communities rather than a single one, the problem of choosing between density and size becomes more naturally handled. Each step in the sequence represents a trade-off, and the overall structure reveals how communities are embedded within each other.
  • The Power of Vertex Ordering: The paper highlights that the order in which vertices are considered is paramount. Their SORTVERTICES heuristic, based on iteratively removing the vertex with the lowest weighted degree, is shown to be surprisingly effective in creating an ordering that facilitates the discovery of nested communities.
  • Monotonic Segmentation as a Natural Fit: Framing the segmentation problem with a monotonicity constraint on community densities directly captures the intuition of nested structures. This allows for an efficient and optimal solution to the segmentation subproblem once the vertex order is fixed.
  • Connection to Dense Subgraph Problems: The paper establishes a theoretical link between finding optimal nested communities and the NP-hard problem of finding dense subgraphs, which helps explain the complexity of the overall problem and motivates the decomposition strategy.

Key Results

  • Algorithmic Efficiency: The proposed algorithm is efficient. For the largest dataset (DBLP with 2 million edges), the computation took only 20 seconds. The main computational bottleneck is the segmentation step, which is quadratic in the number of blocks, but the PAV algorithm effectively reduces this number.
  • Superior Performance: The SORTVERTICES ordering algorithm consistently outperforms baseline ordering methods (path-based, degree-based, and PageRank-based) in terms of the quality of the discovered community sequences. Across 162 comparisons, SORTVERTICES won 158 times.
  • Meaningful Community Structures: The paper provides examples (e.g., in the Karate and DBLP datasets) showing that the discovered nested communities are interpretable and capture meaningful relationships, such as near-cliques or groups of researchers who frequently coauthor papers.

Limitations and Future Work

  • NP-Hardness of Subproblems: While the overall algorithm is efficient, the underlying problem of finding the densest subgraph (used in one of the greedy ordering strategies) and sparsest subgraph are NP-hard. This means that finding the absolute optimal vertex order is intractable, and the SORTVERTICES heuristic is a practical approximation.
  • Generalization of Nested Structures: The authors suggest future work could explore more complex nested structures, such as trees of communities, where parent nodes are denser subgraphs than their children.
  • Multiple Source Sets: Extending the problem to handle multiple source sets instead of a single one is also proposed as a promising direction.

Summary updated

BibTeX
@inproceedings{tatti2013discovering,
  author = {Nikolaj Tatti and Aristides Gionis},
  title = {{Discovering Nested Communities}},
  booktitle = {ECML/PKDD},
  year = {2013},
  doi = {10.1007/978-3-642-40991-2\_3},
}
Figure