Abstract
Traditional community detection methods typically rely on graph topology or simple node attributes. However, many real-world networks involve nodes associated with complex transactional data. We propose the Database Network (DBN) model, where each node is linked to its own transaction database. Within this framework, we define "Theme Communities"—subgraphs characterized by both structural density and a shared frequent transactional pattern. Given that finding these communities is #P-hard, we develop the Theme Community Finder Intersection (TCFI) algorithm, which leverages a Graph Intersection Property for efficient pruning. Furthermore, we introduce the TC-Tree, a hierarchical index that enables sub-second query answering and recommendations. Our evaluation on large-scale datasets, including AMINER and Gowalla, demonstrates that our methods are up to three orders of magnitude faster than traditional approaches, providing a scalable solution for theme-based community analysis.
1. Introduction
In modern network analysis, the "attributes" of a node are often far more complex than a single label or location. Consider a co-author network where each researcher is associated with a database of all keywords from their published papers, or a social network where users are linked to their entire check-in history. Standard attribute-based community detection fails to capture the frequency and co-occurrence patterns inherent in such transactional data.
To address this, we introduce Database Networks (DBNs). In a DBN, the goal is to identify Theme Communities: groups of nodes that are not only well-connected (e.g., forming a $k$-truss) but also share a "theme"—a frequent pattern of items appearing in their respective databases.
The computational challenge is significant. Simply counting the number of theme communities is #P-hard, making exhaustive search impossible for large-scale networks.
2. Methodology
Our approach bridges frequent pattern mining with graph theory by extending the $k$-truss concept to the DBN setting.
2.1 The $(p, \alpha)$-truss
We define a theme community as a maximal connected subgraph where every edge is part of at least $k-2$ triangles, and the "strength" of these triangles is determined by the frequency of a shared pattern $p$ exceeding a threshold $\alpha$. This ensures both structural cohesion and thematic consistency.
2.2 TCFI: Efficient Discovery
To avoid the exponential complexity of checking all item combinations, we developed the Theme Community Finder Intersection (TCFI) algorithm. TCFI relies on the Graph Intersection Property: if the theme communities for pattern A and pattern B are disjoint, then no community can exist for the combined pattern {A, B}. This allows the algorithm to aggressively prune the search space, focusing only on regions where patterns and structures overlap.
2.3 TC-Tree: Indexing and Querying
For real-time applications, we designed the TC-Tree. This index exploits the monotonic property of theme communities: as a pattern becomes more specific (longer) or the cohesion threshold $\alpha$ increases, the resulting community can only shrink or disappear.
The TC-Tree allows for:
- Sub-second Querying: Rapidly retrieving communities for a given theme.
- Query Recommendation: If a specific theme yields no results, the tree can be traversed to suggest the most similar valid themes.
3. Experimental Evaluation
We evaluated our framework on three large-scale datasets: Brightkite (BK), Gowalla (GW) (location-based social networks), and AMINER (a co-author network with keyword databases).
3.1 Efficiency and Scalability
TCFI consistently outperformed baseline Apriori-style approaches by 2 to 3 orders of magnitude. On the AMINER dataset, which contains millions of nodes and transactions, the TC-Tree index (comprising over 122 million nodes) was constructed in approximately 11 hours. Once built, the index supported complex queries in less than 1 second.
3.2 Qualitative Analysis
In the AMINER case study, the system successfully distinguished between overlapping research groups. For instance, it identified a community of researchers focused on "PCA and Dimensionality Reduction" as distinct from those focused on "PCA and Image Retrieval," even when certain prominent researchers were members of both.
4. Conclusion
This work provides a robust framework for mining and querying theme communities in Database Networks. By combining structural constraints with transactional pattern mining and leveraging hierarchical indexing, we enable scalable analysis of complex real-world networks. Future work will explore extending the DBN model to include edge-associated databases and optimizing the TC-Tree for distributed storage environments.
Summary updated