diff --git a/graph/hopcroft_karp.cpp b/graph/hopcroft_karp.cpp index b43d81898..dc1caf6f0 100644 --- a/graph/hopcroft_karp.cpp +++ b/graph/hopcroft_karp.cpp @@ -58,13 +58,11 @@ */ class BGraph { - - int m; ///< m is the number of vertices on left side of Bipartite Graph - int n; ///< n is the number of vertices on right side of Bipartite Graph - const int NIL; - const int INF; + int m{}; ///< m is the number of vertices on left side of Bipartite Graph + int n{}; ///< n is the number of vertices on right side of Bipartite Graph + const int NIL{0}; + const int INF{INT_MAX}; - std::vector >adj; ///< adj[u] stores adjacents of left side and 0 is used for dummy vertex std::vector pair_u; ///< value of vertex 'u' ranges from 1 to m @@ -222,8 +220,7 @@ bool BGraph::dfs(int u) * Function documentation * @brief Default Constructor for initialization */ -BGraph::BGraph():NIL(0),INF(INT_MAX) -{} +BGraph::BGraph() {} /** * Function documentation