Skip to content

Commit c494b11

Browse files
committed
Fix another compile error
1 parent c48bce3 commit c494b11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ jobs:
4141
run: |
4242
ARCH=$([[ "${{ matrix.runner }}" == "ubuntu-24.04" ]] && echo "amd64" || echo "arm64")
4343
bazel build //clusterers:cluster-in-memory_main
44+
bazel build //clusterers:stats-in-memory_main

clusterers/stats/stats_utils.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ inline gbbs::symmetric_graph<gbbs::symmetric_vertex, Wgh> get_subgraph(const Gbb
9797

9898
auto subgraph_edges = parlay::pack(edges, flags);
9999

100+
auto n_edges = n;
100101
if(keep_ids){
101-
return gbbs::sym_graph_from_edges(subgraph_edges, graph_.Graph()->n);
102-
}else{
103-
return gbbs::sym_graph_from_edges(subgraph_edges, n);
102+
n_edges = graph_.Graph()->n;
104103
}
105-
104+
return gbbs::symmetric_graph<gbbs::symmetric_vertex, Wgh>::from_edges(subgraph_edges, n_edges);
106105
}
107106

108107
// return the number of edges in a subgraph that has the vertices in V

0 commit comments

Comments
 (0)