File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ namespace CXXGRAPH
516
516
*
517
517
* @return true if a cycle is detected, else false. ( false is returned also if the graph in indirected)
518
518
*/
519
- const bool isCyclicDFS () const ;
519
+ const bool isCyclicDirectedGraphDFS () const ;
520
520
/* *
521
521
* \brief
522
522
* This function checks if a graph is directed
@@ -805,7 +805,7 @@ namespace CXXGRAPH
805
805
}
806
806
807
807
template <typename T>
808
- const bool Graph<T>::isCyclicDFS () const
808
+ const bool Graph<T>::isCyclicDirectedGraphDFS () const
809
809
{
810
810
if (!isDirectedGraph ()){
811
811
return false ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ TEST(CycleCheckTest, test_1)
15
15
edgeSet.insert (&edge2);
16
16
edgeSet.insert (&edge3);
17
17
CXXGRAPH::Graph<int > graph (edgeSet);
18
- bool res= graph.isCyclicDFS ();
18
+ bool res= graph.isCyclicDirectedGraphDFS ();
19
19
ASSERT_EQ (res,false );
20
20
}
21
21
@@ -31,7 +31,7 @@ TEST(CycleCheckTest, test_2)
31
31
edgeSet.insert (&edge1);
32
32
edgeSet.insert (&edge2);
33
33
CXXGRAPH::Graph<int > graph (edgeSet);
34
- bool res= graph.isCyclicDFS ();
34
+ bool res= graph.isCyclicDirectedGraphDFS ();
35
35
ASSERT_EQ (res,false );
36
36
}
37
37
@@ -49,7 +49,7 @@ TEST(CycleCheckTest, test_3)
49
49
edgeSet.insert (&edge2);
50
50
edgeSet.insert (&edge3);
51
51
CXXGRAPH::Graph<int > graph (edgeSet);
52
- bool res= graph.isCyclicDFS ();
52
+ bool res= graph.isCyclicDirectedGraphDFS ();
53
53
ASSERT_EQ (res,false );
54
54
}
55
55
@@ -67,7 +67,7 @@ TEST(CycleCheckTest, test_4)
67
67
edgeSet.insert (&edge2);
68
68
edgeSet.insert (&edge3);
69
69
CXXGRAPH::Graph<int > graph (edgeSet);
70
- bool res= graph.isCyclicDFS ();
70
+ bool res= graph.isCyclicDirectedGraphDFS ();
71
71
ASSERT_EQ (res,true );
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments