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

Method Graph

Gfg/Java/implement dfs.java:18–24  ·  view source on GitHub ↗
(int v)

Source from the content-addressed store, hash-verified

16
17 // Constructor
18 @SuppressWarnings("unchecked") Graph(int v)
19 {
20 V = v;
21 adj = new LinkedList[v];
22 for (int i = 0; i < v; ++i)
23 adj[i] = new LinkedList();
24 }
25
26 // Function to add an edge into the graph
27 void addEdge(int v, int w)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected