Abstract
Calculating connectivity in massive temporal networks is computationally demanding due to the dynamic nature of edges. This paper introduces a novel streaming matrix algorithm and a hashing-based compression framework to efficiently calculate "out-components"—the set of all reachable nodes—in real-time. By coarsening graphs into "super-nodes" and fusing results from multiple hash functions, the proposed method achieves significant speedups and memory savings while maintaining high accuracy for estimating spreading processes like epidemics or information cascades.
Introduction
In a static network, determining connectivity is a well-understood problem. However, in a temporal network, where edges appear and disappear over time, connectivity is governed by "time-respecting paths." A node can only influence another if an interaction exists at a time $t$, followed by subsequent interactions that respect causal order. The set of all nodes reachable from a specific starting point is called its out-component.
Calculating these components is a critical metric for predicting the reach of viral marketing or disease spread. Yet, existing methods either require massive memory (such as Event Graphs) or are prohibitively slow when dealing with billions of interactions. This research addresses the need for a scalable, "on the fly" (streaming) approach to compute these statistics.
Methods
The Streaming Matrix Algorithm
The core of the approach is representing the network as an $n \times n$ binary matrix where rows and columns correspond to nodes.
- Initialization: The process starts with an identity matrix, representing that each node can initially reach only itself.
- The "OR" Update: As each temporal event $(u, v, t)$ arrives, the algorithm performs a bitwise OR operation between the rows of node $u$ and node $v$. This effectively "shares" the reachability information both nodes have accumulated from their past interactions.
- Streaming: Because the algorithm only requires the current state and the incoming event, it operates in real-time without storing the entire history of interactions.
Graph Hashing & Fusion
To handle networks where the number of nodes $n$ is too large for a full $n \times n$ matrix, the authors introduce a compression scheme:
- Hashing: Nodes are randomly assigned to a smaller set of "super-nodes" using $k$-universal hashing functions.
- Parallel Processing: Multiple independent hashed versions of the graph are processed in parallel.
- Fusion: Results from these different "views" are intersected to reconstruct the out-component size distribution of the original large network.
For further efficiency, the framework integrates the HyperLogLog (HLL) cardinality estimation algorithm, allowing the estimation of component sizes using constant space rather than tracking every individual node ID.
Key Insights and Results
Duality and Privacy
A key insight is the duality of components: by reversing the sequence of events, "in-components" (who can reach a node) become "out-components" (who a node can reach). This allows the streaming algorithm to estimate full distributions by processing data backward. Furthermore, because the framework operates on hashed "super-nodes," it offers a layer of privacy by design, allowing global property inference without exposing individual identities.
Performance Evaluation
The authors evaluated the approach using synthetic Erdős-Rényi networks and real-world datasets from SNAP, including Stack Exchange (Superuser) and Reddit interaction networks.
- Speed and Memory: For massive datasets ($m \ge 10^9$ interactions), the matrix-based approach significantly outperforms state-of-the-art Event Graph methods. The hashing framework reduces memory usage to approximately 50% of the full matrix method.
- Accuracy: Using the Earth-Mover (Wasserstein) distance, the authors demonstrated that the compressed network closely approximates ground-truth out-component distributions, with accuracy improving as the number of hash functions ($K$) increases.
Conclusion
While the matrix algorithm's space complexity remains a challenge for extremely dense, high-node-count networks, the hashing and fusion framework provides a viable path for large-scale temporal network analysis. Future work may extend this framework to other metrics, such as calculating pairwise temporal distances between nodes.
Summary updated