# On the Generalized Mean Densest Subgraph Problem: Complexity and Algorithms

arXiv: https://arxiv.org/abs/2306.02172 · HTML: https://mlsanity.com/paper/2306.02172/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 3 Jun 2023.

## Built on by (most cited first, 1 of 1)

- [Corporate Needs You to Find the Difference: Revisiting Submodular and Supermodular Ratio Optimization Problems](https://mlsanity.com/paper/2505.17443/) (2025)

## Abstract (arXiv)

Dense subgraph discovery is an important problem in graph mining and network analysis with several applications. Two canonical problems here are to find a maxcore (subgraph of maximum min degree) and to find a densest subgraph (subgraph of maximum average degree). Both of these problems can be solved in polynomial time. Veldt, Benson, and Kleinberg [VBK21] introduced the generalized p-mean densest subgraph problem which captures the maxcore problem when p=-∞ and the densest subgraph problem when p=1. They observed that the objective leads to a supermodular function when p ≥ 1 and hence can be solved in polynomial time; for this case, they also developed a simple greedy peeling algorithm with a bounded approximation ratio. In this paper, we make several contributions. First, we prove that for any p ∈ (-frac18, 0) cup (0, frac14) the problem is NP-Hard and for any p ∈ (-3,0) cup (0,1) the weighted version of the problem is NP-Hard, partly resolving a question left open in [VBK21]. Second, we describe two simple 1/2-approximation algorithms for all p < 1, and show that our analysis of these algorithms is tight. For p > 1 we develop a fast near-linear time implementation of the greedy peeling algorithm from [VBK21]. This allows us to plug it into the iterative peeling algorithm that was shown to converge to an optimum solution [CQT22]. We demonstrate the efficacy of our algorithms by running extensive experiments on large graphs. Together, our results provide a comprehensive understanding of the complexity of the p-mean densest subgraph problem and lead to fast and provably good algorithms for the full range of p.
