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

Function GraphStatistics_DecNodeCount

src/graph/graph_statistics.h:73–81  ·  view source on GitHub ↗

decrement the node counter by amount

Source from the content-addressed store, hash-verified

71
72// decrement the node counter by amount
73static inline void GraphStatistics_DecNodeCount
74(
75 GraphStatistics *stats,
76 int l,
77 uint64_t amount
78) {
79 ASSERT(l < array_len(stats->node_count) && stats->node_count[l] >= amount);
80 stats->node_count[l] -= amount;
81}
82
83// retrieves edge count for given relationship type
84uint64_t GraphStatistics_EdgeCount

Callers 2

Graph_DeleteNodesFunction · 0.85
Graph_RemoveNodeLabelsFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected