Skip to content

Commit

Permalink
fix(interactive): Correct the number of edge count (#4229)
Browse files Browse the repository at this point in the history
Correct the `edge_num` in the graph statistics result.

Fix #4225 

TODO: Add a ci
  • Loading branch information
zhanglei1949 authored Sep 13, 2024
1 parent 1dee175 commit 2e434e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flex/engines/http_server/actor/admin_actor.act.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ gs::GraphStatistics get_graph_statistics(const gs::GraphDBSession& sess) {
graph.get_ie_csr(dst_label_id, src_label_id, edge_label_id);
size_t cur_edge_cnt = 0;
if (oe_csr) {
cur_edge_cnt += oe_csr->size();
cur_edge_cnt += oe_csr->edge_num();
} else if (ie_csr) {
cur_edge_cnt += ie_csr->size();
cur_edge_cnt += ie_csr->edge_num();
}
stat.total_edge_count += cur_edge_cnt;
vertex_type_pair_statistics.emplace_back(
Expand Down

0 comments on commit 2e434e3

Please sign in to comment.