Abstract
Hypergraphs serve as a powerful tool for modeling complex relationships across domains like social networks, transactions, and recommendation systems. The (k,g)-core model effectively identifies cohesive subgraphs by assessing internal connections and co-occurrence patterns, but it is susceptible to inflated cohesiveness due to trivial hyperedges. To address this, we propose the $(k,g,p)$-core model, which incorporates the relative importance of hyperedges for more accurate subgraph detection. We develop both Na"ive and Advanced pruning algorithms, demonstrating through extensive experiments that our approach reduces the execution frequency of costly operations by 51.9% on real-world datasets.
1. Introduction
In network science, hypergraphs extend traditional graphs by allowing a single edge—a "hyperedge"—to connect an arbitrary number of nodes. This flexibility is essential for capturing group dynamics such as co-authorship, multi-item transactions, or shared social attributes. A common task in hypergraph analysis is the identification of cohesive subgraphs, which represent tight-knit communities or functional groups.
However, existing models like the $(k, g)$-core often suffer from "size inflation" caused by trivial edges. These are massive, overly broad hyperedges that represent weak or non-specific relationships (e.g., "all residents of a country"). While these edges technically provide "support" for node connectivity, they do not imply meaningful cohesiveness. Treating all hyperedges equally allows these broad relationships to pollute the data, making loosely related nodes appear more connected than they truly are.
2. The $(k, g, p)$-core Model
To mitigate the impact of trivial edges, we introduce the $(k, g, p)$-core model. This model refines the definition of a cohesive subgraph by adding a fractional threshold to the existing neighbor and support constraints:
- Neighbor size ($k$): Each node in the subgraph must have at least $k$ neighbors within the same subgraph.
- Support ($g$): Each node must co-occur with its neighbors in at least $g$ hyperedges.
- Fraction threshold ($p$): A hyperedge is only considered "strong" if at least a fraction $p$ of its total members are included in the candidate subgraph.
By requiring a minimum proportion of a hyperedge's members to be present, the $p$ parameter effectively filters out broad, non-specific edges that would otherwise artificially inflate cohesiveness.
3. Optimized Discovery: The ASAP Algorithm
Finding the $(k, g, p)$-core is computationally intensive, primarily due to the frequent need to recalculate $g$-neighbors as nodes are pruned. We propose two algorithmic approaches:
- Naïve Peeling Algorithm (NPA): This baseline iteratively removes nodes and edges that fail the $(k, g, p)$ criteria. However, it is inefficient because it recomputes neighbor relationships from scratch after every deletion.
- Advanced Support-based Algorithm with Pruning (ASAP): ASAP introduces Supporting Tables to track the distribution of neighbor support values. By establishing node-based and edge-based lower bounds, ASAP implements a lazy update strategy. It only performs expensive neighbor re-computations when a node's connectivity falls below a mathematically determined safety threshold.
4. Experimental Evaluation
We evaluated the $(k, g, p)$-core model and the ASAP algorithm on six diverse real-world datasets, including Amazon (reviews), AMiner (co-authorship), and Instacart (transactions). These datasets exhibit a wide range of node degrees and hyperedge cardinalities, providing a robust test for the algorithm's scalability.
Key Results
- Efficiency: The ASAP algorithm significantly outperformed the naïve approach, reducing expensive neighbor computations by 40% to 72%. On average, ASAP was 1.7x faster than NPA.
- Cohesiveness: In a case study using Instacart data, the $(k, g, p)$-core successfully filtered out generic associations (e.g., "Pasta and Plastic Wrap") to reveal specific consumer clusters (e.g., "Tzatziki, Chips, and Baguettes"). The proportion of trivial edges in the resulting core was 3.43 times lower than that found using traditional models.
5. Conclusion
The $(k, g, p)$-core model provides a more robust framework for cohesive subgraph detection by accounting for the relative specificity of hyperedges. Through the ASAP algorithm's lazy update and pruning strategies, we demonstrate that this increased accuracy does not come at the cost of computational feasibility. Future work will explore adaptive thresholding to automatically determine optimal $p$ values based on hypergraph topology.
Summary updated