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

Method main

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

Source from the content-addressed store, hash-verified

45 }
46
47 public static void main(String args[]) {
48 Graph g = new Graph(4);
49
50 g.addEdge(0, 1);
51 g.addEdge(0, 2);
52 g.addEdge(1, 2);
53 g.addEdge(2, 0);
54 g.addEdge(2, 3);
55 g.addEdge(3, 3);
56
57 System.out.println("Following is Breadth First Traversal " + "(starting from vertex 2)");
58
59 g.BFS(2);
60 }
61}

Callers

nothing calls this directly

Calls 2

addEdgeMethod · 0.95
BFSMethod · 0.95

Tested by

no test coverage detected