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

Function QGNode_AddLabel

src/graph/entities/qg_node.c:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void QGNode_AddLabel
131(
132 QGNode *n,
133 const char *l,
134 int l_id
135) {
136 ASSERT(n != NULL);
137 ASSERT(l != NULL);
138
139 // node already labeled as l
140 if(QGNode_HasLabel(n, l)) return;
141
142 array_append(n->labels, l);
143 array_append(n->labelsID, l_id);
144}
145
146inline bool QGNode_HighlyConnected
147(

Callers 2

_QueryGraphSetNodeLabelFunction · 0.85

Calls 1

QGNode_HasLabelFunction · 0.85

Tested by

no test coverage detected