Introduction
In the era of "Big Data," graph streams—where edges arrive sequentially at high speeds (e.g., network traffic, social media interactions, or financial transactions)—are too large to store in their entirety. To analyze them, researchers use "sketches," which are compressed summaries of the data. However, existing sketches like CountMin treat each edge as an independent unit. This "element independence" loses critical connectivity information (e.g., the fact that node $B$ in edge $(A, B)$ is the same $B$ in edge $(B, C)$), making it impossible to answer structural questions like Is there a path from A to C? or How many triangles exist in the network?
The gLava Model
The paper introduces gLava, a novel graph sketch model designed to summarize massive graph streams in sublinear space while preserving structural connectivity. The core innovation is node-centric hashing.
Instead of hashing an entire edge $(x, y)$, gLava uses $d$ independent hash functions to map individual node labels $x$ and $y$ into $w$ buckets. Each sketch is essentially an adjacency matrix of size $w \times w$. When an edge $(x, y)$ with weight $\omega$ arrives, the sketch updates the cell at row $h(x)$ and column $h(y)$ by adding $\omega$.
As shown in the figures, because nodes are hashed consistently, the sketch itself is a graph. If multiple edges share a node in the original stream (Figure 1), they will share a "bucket node" in the sketch (Figure 2), preserving the topology. For example, nodes $a$ and $e$ from the original stream are mapped to bucket node $I$ in the sketch, and their respective edges are aggregated accordingly. The authors also suggest using non-square matrices (e.g., $m \times p$) to further reduce collision probability by diversifying the hash space.
Key Insights and Query Processing
gLava acts as a wrapper for standard graph algorithms. To answer a query, one can run "off-the-shelf" algorithms (like BFS for reachability) directly on each of the $d$ sketches. The results are then aggregated—typically by taking the minimum value across sketches—to mitigate the effects of hash collisions (false positives).
- Structural Awareness: By shifting the hashing unit from the "edge" to the "node," the sketch naturally inherits the properties of a graph. This allows for "graph-aware" summarization rather than just "frequency-aware" counting.
- Algorithm Agnosticism: gLava does not require new algorithms for streaming reachability; it allows the use of existing, well-optimized graph algorithms as "black boxes" on the summarized data.
Performance and Complexity
Remarkably, the authors prove that gLava maintains the same theoretical error bounds as the CountMin sketch for edge frequency queries, despite providing significantly more analytical power. The estimated weight $\tilde{f}_e$ is an over-approximation that stays within a factor of $\epsilon$ of the true weight with a probability of $1 - \delta$, provided sufficient hash functions and buckets are used.
- Space: $O(d \cdot w^2)$, which is sublinear relative to the number of edges in massive streams.
- Update Time: $O(d)$ (constant time per edge), making it suitable for true real-time streaming applications.
- Query Time: $O(d)$ for edge queries; $O(d + w)$ for point (degree) queries. Path and subgraph queries depend on the complexity of the underlying algorithm used on the $w \times w$ sketch.
Limitations and Future Work
Like all hash-based sketches, gLava can suffer from "false positives" due to collisions. If two unrelated nodes hash to the same bucket, the sketch might indicate a path exists when it doesn't. As the stream progresses, the $w \times w$ matrices can become dense, which may impact the accuracy of structural queries. Future work may involve exploring distributed scaling, as gLava is naturally suited for environments where each of the $d$ sketches can be maintained independently.
Summary updated