Introduction
Traditional community search algorithms identify cohesive groups of nodes centered around a set of "query nodes." However, real-world scenarios often involve negative constraints where specific individuals or entities must be excluded. This paper introduces the concept of forbidden nodes and proposes the FORTE (Forbidden nOdes awaRe communiTy sEarch) framework to address this gap. Unlike simple post-hoc deletion, which can compromise community density, FORTE integrates forbidden node constraints directly into the search process.
Problem Definition
Community search is a localized approach to community detection. Given a set of query nodes, the goal is to find a subgraph that is both cohesive and relevant. The addition of forbidden nodes introduces a "push-pull" dynamic: query nodes attract the community, while forbidden nodes repel it. For instance, in social circles, one might want to organize a group while excluding a specific person to avoid conflict. In recommendation systems, a user might seek "fiction" clusters while explicitly forbidding "horror" content.
The FORTE Framework
The authors propose three distinct algorithms under the FORTE umbrella, each employing different structural or probabilistic constraints:
- $k$-core based FORTE: This method utilizes the $k$-core structure, requiring every node to have at least $k$ neighbors within the community. It begins with a Steiner tree connecting query nodes and expands by adding neighbors, pruning any node that is closer (by average shortest path distance) to a forbidden node than to the query nodes.
- $k$-truss based FORTE: A more stringent approach where every edge must belong to at least $k-2$ triangles. This ensures higher internal density but comes at a higher computational cost.
- $C_W$ (Weighted Conductance) based FORTE: The most advanced method, it leverages Personalized PageRank (PPR) to assign weights to nodes. High weights are given to nodes reachable from query nodes but unreachable from forbidden nodes. The algorithm then identifies a community that minimizes Weighted Conductance, balancing internal cohesion against external connectivity.
Experimental Evaluation
The researchers evaluated FORTE on three large-scale networks: DBLP (co-authorship), Amazon (product co-purchasing), and YouTube (social subscriptions).
- Accuracy: The $C_W$ based method consistently outperformed $k$-core and $k$-truss variants in terms of F-measure, demonstrating superior recovery of ground-truth communities while avoiding forbidden nodes.
- Efficiency: Despite its complexity, the $C_W$ method proved highly efficient, with runtimes comparable to the simpler $k$-core approach (approx. 1.5 to 2.8 minutes), whereas $k$-truss often exceeded 10 minutes on the YouTube dataset.
- Avoidance: All FORTE methods significantly reduced the "Closeness-to-the-Forbidden" ($cf$) metric compared to standard baselines, confirming their effectiveness in distancing the result from excluded targets.
Discussion and Future Work
While FORTE represents a significant advancement, it faces certain limitations. The $C_W$ method's performance is sensitive to the pruning threshold $\lambda$, as shown in the experimental results. Additionally, the current framework assumes all query nodes must be included, which may be impossible in highly constrained scenarios. Future research could explore "soft" constraints or adapt these methods for dynamic, time-varying networks.
Summary updated