Most Probable Densest Subgraphs

Arkaprava Saha, Xiangyu Ke, Arijit Khan, Cheng Long

Abstract

Finding dense subgraphs is a fundamental task in network analysis, yet real-world graphs are often uncertain. This paper introduces the Most Probable Densest Subgraph (MPDS) problem, which seeks the community of nodes most likely to form the densest subgraph across all possible realizations of an uncertain network. We prove that MPDS is #P-hard and develop a highly efficient sampling-based approximation algorithm. Our method significantly outperforms traditional expected-density metrics, providing more cohesive and biologically relevant results in large-scale applications.

Introduction

Dense subgraph discovery is essential for identifying tight-knit communities in social networks, detecting coordinated attacks in financial systems, or uncovering functional modules in biological networks. However, many real-world networks are uncertain graphs, where edges exist only with a certain probability due to measurement noise, predictive modeling, or privacy-preserving techniques.

Previous research focused on the Expected Densest Subgraph (EDS)—the subgraph with the highest average density across all possible worlds. However, EDS often identifies large, loosely connected "hairballs" of low-probability edges that rarely represent the actual densest structure in any specific realization. This paper shifts the focus to finding the subgraph that is most likely to be the densest in any given "possible world."

Problem Definition: Uncertain Graphs and Possible Worlds

An uncertain graph is a collection of edges, each associated with a probability of existence. This model implies a set of $2^m$ deterministic "possible worlds," where $m$ is the number of edges. The goal of the MPDS problem is to find the set of nodes $S$ that maximizes the probability $P(S \text{ is the densest subgraph})$.

An input uncertain graph G and its eight possible deterministic worlds (G1-G8) with their respective probabilities.

As shown in Figure 2, the probability of any specific world occurring is the product of the probabilities of its existing edges and the complements of its missing edges. The MPDS is the node set that appears as the densest subgraph most frequently when weighted by these world probabilities.

Methodology

Computing the exact MPDS is computationally intractable (#P-hard). To address this, the authors propose a robust approximation framework:

  1. Monte Carlo Sampling: A statistically significant number of possible worlds are sampled based on edge probabilities.
  2. Enumerating All Densest Subgraphs: In each sampled world, the algorithm finds all densest subgraphs rather than just one. This is crucial because ties are common, and ignoring them leads to significant underestimation of probabilities. The authors developed novel exact algorithms using flow networks and strongly connected components for this purpose.
  3. Nucleus Densest Subgraphs (NDS): To handle massive graphs where the probability of any single exact node set being the densest is infinitesimal, the authors introduce NDS. This approach identifies the "nucleus"—nodes most frequently contained within densest subgraphs across sampled worlds—by mapping the problem to closed frequent itemset mining.
Illustration of pattern-densest subgraphs matching an input pattern against possible worlds.

The framework also extends to pattern-densest subgraphs, where density is defined by the frequency of specific motifs (e.g., triangles or stars) rather than just edges, as illustrated in Figure 4.

Experimental Results

The authors evaluated their methods on diverse datasets, including social networks (Twitter, Friendster), biological networks (Homo Sapiens), and brain networks (fMRI data).

Superior Cohesiveness and Accuracy

MPDS and NDS dramatically outperform existing baselines like Expected Densest Subgraph. On the Twitter dataset, NDS achieved a probabilistic density of 0.789, while the expected density baseline managed only 0.042. On small synthetic graphs, the approximation algorithm achieved near-perfect F1 scores compared to exact brute-force calculations.

Scalability

The sampling-based approach scales remarkably well. The algorithm successfully processed the Friendster graph, containing 1.8 billion edges, in just a few hours using heuristic optimizations.

Case Study: Neuroscience

In a study of brain networks from children with Autism Spectrum Disorder (ASD) and typically developed (TD) children, the MPDS method successfully highlighted known neurological differences, such as localized over-connectivity. In contrast, the expected-density baseline returned uninformative, massive blobs that failed to distinguish between the two groups.

Conclusion

The "Most Probable Densest Subgraph" framework provides a more accurate and meaningful way to analyze uncertain networks than traditional expectation-based metrics. By focusing on the probability of being the densest, the method uncovers tighter, more relevant communities. Future work includes improving the efficiency of pattern-based enumeration for even larger datasets and extending the framework to temporal uncertain graphs.

Summary updated

BibTeX
@inproceedings{saha2022most,
  author = {Arkaprava Saha and Xiangyu Ke and Arijit Khan and Cheng Long},
  title = {{Most Probable Densest Subgraphs}},
  booktitle = {ICDE},
  year = {2022},
}
Figure