Graph compression is a set of algorithms and data structure optimizations designed to reduce the storage and memory requirements of a graph—a network of nodes (vertices) and connections (edges)—while preserving its essential topological and semantic properties. Core techniques include adjacency matrix sparsification, edge contraction to merge nodes, and compact storage formats like Compressed Sparse Row (CSR). In agentic systems, this enables efficient storage of large knowledge graphs and interaction histories within constrained memory budgets, directly impacting the scalability of long-term context management.
