MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / DFSTraversal

Method DFSTraversal

Java/DFSTraversal.java:8–15  ·  view source on GitHub ↗
(int V)

Source from the content-addressed store, hash-verified

6
7 /* Creation of the graph */
8 DFSTraversal(int V) /* 'V' is the number of vertices in the graph */
9 {
10 adj = new LinkedList[V];
11 visited = new boolean[V];
12
13 for (int i = 0; i < V; i++)
14 adj[i] = new LinkedList<Integer>();
15 }
16
17 /* Adding an edge to the graph */
18 void insertEdge(int src, int dest) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected