From e248a614e58cd377f8960db117df174ba13172ed Mon Sep 17 00:00:00 2001 From: AkVaya Date: Sat, 15 Aug 2020 01:58:23 +0530 Subject: [PATCH] Performed requested changes --- graph/is_graph_bipartite.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/graph/is_graph_bipartite.cpp b/graph/is_graph_bipartite.cpp index 426d25560..db73a72af 100644 --- a/graph/is_graph_bipartite.cpp +++ b/graph/is_graph_bipartite.cpp @@ -32,11 +32,8 @@ #include /** - * Class for representing graph as an adjacency list. - */ -/** - * @namespace graph - * @brief Graph algorithms + * @namespace graph + * @brief Graph algorithms */ namespace graph{ /** @@ -44,7 +41,9 @@ namespace graph{ * @brief Functions for checking whether a graph is bipartite or not */ namespace is_graph_bipartite{ - + /** + * @brief Class for representing graph as an adjacency list. + */ class Graph { private: int n; /// size of the graph @@ -57,9 +56,9 @@ namespace graph{ public: - /** - * @brief Constructor that initializes the graph on creation - */ + /** + * @brief Constructor that initializes the graph on creation + */ explicit Graph(int size = nax){ n = size; adj.resize(n);