| 672 | } |
| 673 | |
| 674 | static 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 | |
| 686 | static graph_fp_t graph_fingerprint(const cbm_gbuf_t *gb) { |
| 687 | graph_fp_t fp = {.gb = gb}; |
no test coverage detected