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

Function AR_OUTGOINGDEGREE

src/arithmetic/entity_funcs/entity_funcs.c:228–239  ·  view source on GitHub ↗

returns the number of outgoing edges for given node

Source from the content-addressed store, hash-verified

226
227// returns the number of outgoing edges for given node
228SIValue AR_OUTGOINGDEGREE
229(
230 SIValue *argv,
231 int argc,
232 void *private_data
233) {
234 if(SI_TYPE(argv[0]) == T_NULL) {
235 return SI_NullVal();
236 }
237
238 return _AR_NodeDegree(argv, argc, GRAPH_EDGE_DIR_OUTGOING);
239}
240
241SIValue AR_PROPERTY(SIValue *argv, int argc, void *private_data) {
242 // return NULL for missing graph entity

Callers

nothing calls this directly

Calls 2

SI_NullValFunction · 0.85
_AR_NodeDegreeFunction · 0.85

Tested by

no test coverage detected