MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Method main

Gfg/Java/implement dfs.java:67–83  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

65
66 // Driver Code
67 public static void main(String args[])
68 {
69 Graph g = new Graph(4);
70
71 g.addEdge(0, 1);
72 g.addEdge(0, 2);
73 g.addEdge(1, 2);
74 g.addEdge(2, 0);
75 g.addEdge(2, 3);
76 g.addEdge(3, 3);
77
78 System.out.println(
79 "Following is Depth First Traversal "
80 + "(starting from vertex 2)");
81
82 g.DFS(2);
83 }
84}

Callers

nothing calls this directly

Calls 2

addEdgeMethod · 0.95
DFSMethod · 0.95

Tested by

no test coverage detected