Skip to content

Commit

Permalink
fix edge counting
Browse files Browse the repository at this point in the history
Committed-by: xiaolei.zl from Dev container
  • Loading branch information
zhanglei1949 committed Sep 13, 2024
1 parent e14c989 commit 3a9695b
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 3a9695b

Please sign in to comment.