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

Function fp_visit_edge

tests/test_parallel.c:674–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674static void fp_visit_edge(const cbm_gbuf_edge_t *e, void *ud) {
675 graph_fp_t *fp = ud;
676 const cbm_gbuf_node_t *src = cbm_gbuf_find_by_id(fp->gb, e->source_id);
677 const cbm_gbuf_node_t *dst = cbm_gbuf_find_by_id(fp->gb, e->target_id);
678 uint64_t h = fp_mix(1469598103934665603ULL, "E");
679 h = fp_mix(h, e->type);
680 h = fp_mix(h, src ? src->qualified_name : NULL);
681 h = fp_mix(h, dst ? dst->qualified_name : NULL);
682 h = fp_mix(h, e->properties_json);
683 fp_fold(fp, h);
684}
685
686static graph_fp_t graph_fingerprint(const cbm_gbuf_t *gb) {
687 graph_fp_t fp = {.gb = gb};

Callers 1

php_vendor_edge_fpFunction · 0.85

Calls 3

cbm_gbuf_find_by_idFunction · 0.85
fp_mixFunction · 0.85
fp_foldFunction · 0.85

Tested by

no test coverage detected