Imagine a router logging every packet it forwards, or a social platform recording every new follow. The edges of these massive graphs arrive in a continuous stream — too fast and too numerous to store in full. Yet you still need to answer questions: are these two users connected? How many components does the network have?
The classic approach of building and querying an adjacency matrix is hopeless when a graph has billions of edges and you have only megabytes of RAM. Streaming graph sketches offer a different deal: read each edge exactly once, maintain a tiny summary in memory, and at the end extract a complete answer.
The key insight, developed through a series of breakthroughs from the late 1990s through the 2010s, is that linear algebra can do what direct storage cannot. A linear sketch is a small random projection of the edge set; it supports updates (both insertions and deletions) by simple addition and subtraction, and it compresses exponentially without losing the information needed for connectivity.
Comments
Loading comments...