Fast Algorithm for K-Truss Discovery on Public-Private Graphs

Soroush Ebadian, Xin Huang

TL;DR

This research introduces a highly efficient hybrid algorithm for discovering $k$-trusses—dense communities where every edge belongs to at least $k-2$ triangles—within "public-private" graphs. By combining a novel node-insertion update strategy with a machine-learning classifier to choose the best execution path, the authors achieve up to a 38x speedup over traditional edge-by-edge insertion methods on large-scale social networks.

The Challenge of Public-Private Graphs

In modern social networks like Facebook or Sina Weibo, the graph isn't a single monolithic entity visible to everyone. Instead, it’s a public-private graph: there is a global public structure (visible to all) and personalized private edges (e.g., hidden friend lists or secret follows) visible only to specific users.

Illustration of a public-private graph structure where public edges are solid and private edges are dashed.

When a user wants to find a dense community (a $k$-truss) they belong to, the system must consider both the public graph and that user's specific private connections. The computational challenge is immense: recomputing the $k$-truss from scratch for every query is too slow for large networks, and existing "incremental" algorithms that add edges one-by-one become incredibly inefficient when a user has many private connections.

Proposed Methodology

The authors propose a two-pronged solution to move beyond "from-scratch" recomputation:

1. Node-Insertion Updating (Vertex-PP)

Instead of adding private edges one by one, this algorithm treats the query as a single "node insertion" event. The authors developed new theoretical rules to bound how much the "trussness" of existing edges can change when a new node and its incident edges are added. They introduce the concept of a $(k, d)$-neighborhood to prune the search space, focusing only on the region of the graph likely to be affected.

2. Hybrid-PP Strategy

The authors observed that "Node-Insertion" (Vertex-PP) isn't always faster than "Edge-Insertion" (Edge-PP). The optimal choice depends on the local topology of the graph. To solve this, they built a Hybrid-PP algorithm that uses a Random Forest classifier. Before processing a query, the system looks at features like the user's public/private degree and triangle counts to predict which algorithm will be faster and then executes that choice.

Scatter plot showing the performance crossover between Vertex-PP and Edge-PP based on public and private degrees.

Experimental Evaluation

The researchers evaluated their approach using two main sources:

  • PP-DBLP (2013–2016): A real-world public-private dataset derived from DBLP bibliography records. Public edges represent co-authorship in published papers, while "private" edges represent ongoing collaborations.
  • SNAP Datasets: Ten well-known large-scale graphs (e.g., LiveJournal, Flickr, Gowalla). Since these don't have native private edges, the authors simulated them by randomly sampling nodes and treating their incident edges as private.

Key Insights

  • The Batch Advantage: Adding a user's private edges as a single batch (node insertion) allows for much more aggressive pruning than adding them sequentially. By calculating upper and lower bounds for trussness simultaneously, the algorithm avoids redundant work.
  • Topology Matters: A simple rule like "use node-insertion if the user has many private edges" doesn't actually work. The distribution of "winning" cases for each algorithm is complex, justifying the use of a machine learning classifier to make the decision.
  • Trussness as an Index: By pre-computing a "truss index" on the public graph, the system only needs to perform "delta" updates for the private edges, which is significantly faster than a full decomposition.

Results and Performance

  • Significant Speedups: On the LiveJournal dataset, the node-insertion method was 38.67 times faster than the traditional edge-insertion approach.
  • Classifier Accuracy: The Random Forest classifier achieved between 84.4% and 87.8% accuracy in predicting the faster algorithm, leading to the Hybrid-PP method consistently outperforming all other strategies.
  • Scalability: The proposed algorithms handled graphs with tens of millions of edges (like LiveJournal and Flickr) with average query times significantly lower than the baseline "online search" (truss decomposition from scratch).

Limitations and Future Work

While highly effective, the "Vertex-PP" method currently requires removing the user's public edges and then re-inserting them along with private edges, which adds some overhead. Future work could extend these strategies to other dense subgraph definitions, such as $k$-plexes or quasi-cliques, and address the challenge of rapidly changing public graphs.

Summary updated

BibTeX
@inproceedings{ebadian2019fast,
  author = {Soroush Ebadian and Xin Huang},
  title = {{Fast Algorithm for K-Truss Discovery on Public-Private Graphs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/313},
}
Figure