MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / GraphStatistics_DecEdgeCount

Function GraphStatistics_DecEdgeCount

src/graph/graph_statistics.h:51–59  ·  view source on GitHub ↗

decrement the edge counter by amount

Source from the content-addressed store, hash-verified

49
50// decrement the edge counter by amount
51static inline void GraphStatistics_DecEdgeCount
52(
53 GraphStatistics *stats,
54 RelationID r,
55 uint64_t amount
56) {
57 ASSERT(r < array_len(stats->edge_count) && stats->edge_count[r] >= amount);
58 stats->edge_count[r] -= amount;
59}
60
61// increment the node counter by amount
62static inline void GraphStatistics_IncNodeCount

Callers 1

Graph_DeleteEdgesFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected