MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / graph_node_compare

Function graph_node_compare

src/store/store.c:1860–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1858}
1859
1860static int graph_node_compare(const cbm_graph_node_identity_t *left,
1861 const cbm_graph_node_identity_t *right) {
1862 int cmp = graph_binary_compare(left->qualified_name, right->qualified_name);
1863 if (cmp == 0) {
1864 cmp = graph_binary_compare(left->label, right->label);
1865 }
1866 if (cmp == 0) {
1867 cmp = graph_binary_compare(left->file_path, right->file_path);
1868 }
1869 return cmp;
1870}
1871
1872static int graph_edge_compare(const cbm_graph_edge_identity_t *left,
1873 const cbm_graph_edge_identity_t *right) {

Callers 2

graph_edge_compareFunction · 0.85
graph_compare_nodesFunction · 0.85

Calls 1

graph_binary_compareFunction · 0.85

Tested by

no test coverage detected