Skip to content

Commit

Permalink
Updated clang-format to BipartiteTest.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
THIRU-1074 committed Sep 6, 2024
1 parent db00eef commit 204975e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/BipartiteTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ TEST(IsBipartiteTest, non_bipartite_graph) {

CXXGraph::UndirectedEdge<int> edge1(1, node1, node2);
CXXGraph::UndirectedEdge<int> edge2(2, node2, node3);
CXXGraph::UndirectedEdge<int> edge3(3, node3, node1); // Forms a cycle of 3 nodes
CXXGraph::UndirectedEdge<int> edge3(3, node3,
node1); // Forms a cycle of 3 nodes

CXXGraph::T_EdgeSet<int> edgeSet;
edgeSet.insert(make_shared<CXXGraph::UndirectedEdge<int>>(edge1));
Expand All @@ -54,7 +55,9 @@ TEST(IsBipartiteTest, non_bipartite_graph) {
CXXGraph::Graph<int> graph(edgeSet);

bool isBipartite = graph.isBipartite();
ASSERT_EQ(isBipartite, false); // This graph has an odd-length cycle, so it's not bipartite
ASSERT_EQ(
isBipartite,
false); // This graph has an odd-length cycle, so it's not bipartite
}

TEST(IsBipartiteTest, empty_graph) {
Expand Down

0 comments on commit 204975e

Please sign in to comment.