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

Method Graph

Programs/BreathFirstSearch.java:10–15  ·  view source on GitHub ↗
(int v)

Source from the content-addressed store, hash-verified

8
9 // Create a graph
10 Graph(int v) {
11 V = v;
12 adj = new LinkedList[v];
13 for (int i = 0; i < v; ++i)
14 adj[i] = new LinkedList();
15 }
16
17 // Add edges to the graph
18 void addEdge(int v, int w) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected