diff --git a/analytical_engine/core/fragment/dynamic_fragment.h b/analytical_engine/core/fragment/dynamic_fragment.h index 65becac15e49..ab5afc8bd64b 100644 --- a/analytical_engine/core/fragment/dynamic_fragment.h +++ b/analytical_engine/core/fragment/dynamic_fragment.h @@ -428,11 +428,11 @@ class DynamicFragment return res; } - inline size_t GetOutgoingEdgeNum() const override { + inline size_t GetOutgoingEdgeNum() const { return oe_.head_edge_num() + is_selfloops_.count(); } - inline size_t GetIncomingEdgeNum() const override { + inline size_t GetIncomingEdgeNum() const { return ie_.head_edge_num() + is_selfloops_.count(); }