diff --git a/graph/hopcroft_karp.cpp b/graph/hopcroft_karp.cpp index a12eeb8e2..608897c63 100644 --- a/graph/hopcroft_karp.cpp +++ b/graph/hopcroft_karp.cpp @@ -221,13 +221,11 @@ bool BGraph::dfs(int u) return true; } // Default Constructor for initialization -BGraph::BGraph(){ - NIL=0; - INF=INT_MAX; -} +BGraph::BGraph():NIL(0),INF(INT_MAX) +{} // Constructor for initialization -BGraph::BGraph(int m, int n) +BGraph::BGraph(int m, int n):NIL(0),INF(INT_MAX) { this->BGraph(); this->m = m;