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

Method Graph

Programs/DepthFirstSearch.java:10–16  ·  view source on GitHub ↗
(int vertices)

Source from the content-addressed store, hash-verified

8
9 // Graph creation
10 Graph(int vertices) {
11 adjLists = new LinkedList[vertices];
12 visited = new boolean[vertices];
13
14 for (int i = 0; i < vertices; i++)
15 adjLists[i] = new LinkedList<Integer>();
16 }
17
18 // Add edges
19 void addEdge(int src, int dest) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected