|
VeloGraphX
High-performance dynamic graph analytics in C++20
|
Dynamic triangle counting maintains the number of triangles in a graph as edges are inserted or removed. Triangles are a basic building block for clustering, motif analysis, network structure, and many graph-mining workloads, but recomputing a global triangle count after every graph update can be expensive.
VeloGraphX provides exact maintained triangle counting for evolving graphs and evaluates it against exact reference computation.
A triangle is a set of three vertices connected pairwise by edges. When one edge changes, only triangles involving that edge can be created or destroyed, so a maintained algorithm can often update the exact global count by examining relevant local neighborhoods instead of recounting every triangle in the graph.
That local opportunity is the basis for dynamic triangle maintenance, but its cost still depends on graph structure and update regime.
VeloGraphX documents triangle counting with an exact count contract. Maintained triangle results are checked against exact recomputation in tests and retained benchmark campaigns.
The public implementation is available under include/velographx/incremental/triangles.hpp and uses the same evolving-graph substrate as the other maintained analytics.
The repository retains exact dynamic-triangle experiments rather than reporting performance without a correctness check. One publication-facing comparison uses an exact external reference and keeps all paired exactness results alongside latency measurements. Additional multi-dataset crossover evidence is retained to show that graph structure can change the balance between localized maintenance and recomputation.
VeloGraphX does not generalize those scoped results into a claim that one triangle-counting strategy is universally faster.
Dynamic triangle counts can support repeatedly refreshed measures of local density, clustering, community structure, and network change. They are relevant when the underlying graph evolves continuously but exact motif counts still matter.
In VeloGraphX, triangle maintenance sits alongside dynamic BFS, connected components, k-core, weighted shortest paths, and PageRank-related workflows, allowing multiple graph analytics to share one mutable graph substrate.