Query Optimal k-Plex Based Community in Graphs

Yue Wang, Xun Jian, Zhenhua Yang, Jia LiData Sci. Eng 2017

Abstract

Community search aims to find the most cohesive subgraph containing a set of query nodes. Traditional models often suffer from the "free-rider effect," where irrelevant nodes are included due to their proximity to a dense core. This paper proposes the Maximum Connected $k$-plex Community Query (MCKPQ) model. A $k$-plex is a relaxed clique where each node can miss at most $k$ neighbors within the group. We prove MCKPQ is NP-hard and develop an optimized branch-and-bound algorithm alongside a fast greedy heuristic. Experimental results on large-scale networks demonstrate that our approach effectively identifies high-quality communities with bounded diameters and high internal density.

Introduction

In graph mining, identifying meaningful groups of nodes is a core task. While community detection partitions an entire network into clusters, community search is query-driven, focusing on finding the best community containing a specific set of query nodes ($Q$).

A major challenge in community search is the "free-rider effect." Density-based metrics like minimum degree (used in $k$-core models) can be "tricked" into including large, sparse subgraphs simply because they are connected to a very dense core. Furthermore, many models lack theoretical guarantees on the community's diameter, leading to the discovery of long, stringy, or disconnected groups. To address these issues, we propose the $k$-plex model. A $k$-plex ensures that internal density grows with community size and naturally limits the diameter, making it a robust choice for finding functional social or research groups.

Problem Formulation

We define the community search problem using the $k$-plex structure. A subgraph $H$ is a $k$-plex if for every node $v \in H$, its degree within $H$ is at least $|H| - k$. The Maximum Connected $k$-plex Community Query (MCKPQ) seeks the largest connected $k$-plex that contains all query nodes in $Q$.

Table of notations used in the MCKPQ problem definition.

The $k$-plex model offers several advantages over traditional methods:

  1. Density Scaling: Unlike $k$-cores, the density requirement of a $k$-plex becomes stricter as the community grows.
  2. Connectivity Guarantee: Any $k$-plex with more than $k+1$ nodes is guaranteed to be connected.
  3. Diameter Bound: The diameter of any $k$-plex is at most $k$, ensuring members are "close" to each other.

Algorithmic Framework

Finding the maximum $k$-plex is NP-hard. We develop a branch-and-bound (B&B) framework to solve MCKPQ exactly, utilizing several pruning techniques to manage the search space.

Exact Solution: Branch-and-Bound

Our B&B algorithm uses a depth-first search (DFS) to explore candidate sets. We prune the search space using:

  • Query Distance: Nodes more than $k$ hops away from $Q$ are excluded.
  • Core Numbers: Nodes with core numbers lower than the required minimum degree are removed.
  • Upper Bounding: We calculate the maximum possible size a candidate set can reach; if it is smaller than the current best solution, the branch is discarded.
An example of a simple graph $G(V, E)$ used to illustrate community search and node relationships.

Optimizations and Heuristics

To improve performance, we implement Partial Branching, prioritizing "bottleneck" nodes with the lowest degrees. We also use Incremental Candidate Generation with hash tables to avoid redundant scans. For massive graphs where exact solutions are too slow, we propose a Greedy Heuristic. It expands the community by picking nodes that maximize a quality function $f_H(v)$, which balances the number of new edges added against the total number of neighbors reached.

Experimental Evaluation

We evaluated our methods on four real-world datasets from the Stanford Network Analysis Project (SNAP): DBLP, Amazon, Arxiv COND-MAT, and Google-Web.

  • Efficiency: The optimized B&B algorithm (bb_inc) outperformed baseline enumeration methods by several orders of magnitude. On the DBLP dataset, it found optimal communities in seconds where baselines took hours.
  • Heuristic Performance: The greedy heuristic is extremely fast and consistently found communities that were at least 50% the size of the theoretical maximum.
  • Case Studies: Using the DBLP graph, the model successfully identified tight-knit research groups (e.g., prominent researchers like Jiawei Han and Philip S. Yu) and showed how increasing $k$ allows for a natural hierarchical exploration of communities.

Conclusion

The MCKPQ model provides a robust framework for community search by leveraging the properties of $k$-plexes to mitigate the free-rider effect. While the problem remains computationally challenging, our optimized algorithms and heuristics make it viable for large-scale networks. Future work includes automating parameter selection for $k$ and adapting these techniques for dynamic, rapidly evolving graphs.

Summary updated

BibTeX
@article{wang2017query,
  author = {Yue Wang and Xun Jian and Zhenhua Yang and Jia Li},
  title = {{Query Optimal k-Plex Based Community in Graphs}},
  journal = {Data Sci. Eng.},
  year = {2017},
  doi = {10.1007/s41019-017-0051-3},
}

Loading related content...

Figure