| 10017 | } cbm_lg_t; |
| 10018 | |
| 10019 | static void lg_free(cbm_lg_t *g) { |
| 10020 | free(g->off); |
| 10021 | free(g->nbr); |
| 10022 | free(g->w); |
| 10023 | free(g->k); |
| 10024 | g->off = NULL; |
| 10025 | g->nbr = NULL; |
| 10026 | g->w = NULL; |
| 10027 | g->k = NULL; |
| 10028 | } |
| 10029 | |
| 10030 | /* Build a CSR graph from a deduplicated undirected edge list. */ |
| 10031 | static int lg_build(int n, const int *wsi, const int *wdi, const double *ww, int wn, |