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

Method Graph

Programs/Dijkstra.java:68–74  ·  view source on GitHub ↗
(int v)

Source from the content-addressed store, hash-verified

66 int v;
67 List<ArrayList<AdjNode>> adjList;
68 Graph(int v){
69 this.v = v;
70 adjList = new ArrayList<>();
71 for(int i = 0; i < this.v; i++){
72 adjList.add(new ArrayList<>());
73 }
74 }
75
76 public void addEdge(int u, int v, int cost){
77 this.adjList.get(u).add(new AdjNode(u, v, cost));

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected