MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/DepthFirstSearch.java:36–47  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

34 }
35
36 public static void main(String args[]) {
37 Graph g = new Graph(4);
38
39 g.addEdge(0, 1);
40 g.addEdge(0, 2);
41 g.addEdge(1, 2);
42 g.addEdge(2, 3);
43
44 System.out.println("Following is Depth First Traversal");
45
46 g.DFS(2);
47 }
48}

Callers

nothing calls this directly

Calls 2

addEdgeMethod · 0.95
DFSMethod · 0.95

Tested by

no test coverage detected