From 5114e16d48b28f0ba8a6dd8f0d49b05b2950294f Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:02:43 +0000 Subject: [PATCH] clang-tidy fixes for 780580f71fd7245da9ec27aa54c35fca6793883d --- graph/hopcroft_karp.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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