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

Function Graph_GetLabelMatrix

src/graph/graph.c:1264–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262}
1263
1264RG_Matrix Graph_GetLabelMatrix
1265(
1266 const Graph *g,
1267 LabelID label_idx
1268) {
1269 ASSERT(g != NULL);
1270 ASSERT(label_idx < Graph_LabelTypeCount(g));
1271
1272 // return zero matrix if label_idx is out of range
1273 if(label_idx < 0) return Graph_GetZeroMatrix(g);
1274
1275 RG_Matrix m = g->labels[label_idx];
1276 g->SynchronizeMatrix(g, m);
1277
1278 return m;
1279}
1280
1281RG_Matrix Graph_GetRelationMatrix
1282(

Callers 15

Graph_EnsureNodeCapFunction · 0.85
Serializer_Graph_SetNodeFunction · 0.85
RdbLoadGraphContext_v13Function · 0.85
RdbLoadGraphContext_v11Function · 0.85
RdbLoadGraphContext_v9Function · 0.85
RdbLoadGraphContext_v10Function · 0.85
RdbLoadGraphContext_v8Function · 0.85
RdbLoadGraphContext_v12Function · 0.85
Constraint_EnforceNodesFunction · 0.85
_Index_PopulateNodeIndexFunction · 0.85

Calls 2

Graph_LabelTypeCountFunction · 0.85
Graph_GetZeroMatrixFunction · 0.85

Tested by 1

_bind_matricesFunction · 0.68