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

Method addEdge

Programs/BFS.java:25–27  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

23 }
24
25 public void addEdge(int u, int v) { // edge from u -> v
26 this.adj[u].add(v);
27 }
28
29 public void BFS(int source) {
30 Queue<Integer> queue = new LinkedList<Integer>();

Callers 1

mainMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected