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

Method printGraph

Programs/Dijkstra.java:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 this.adjList.get(v).add(new AdjNode(v, u, cost));
79 }
80 public void printGraph(){
81 for(int i = 0 ; i < this.v ; i++){
82 System. out.print(i + " -> ");
83 for(int j = 0 ; j < adjList.get(i).size(); j++){
84 System.out.print(adjList.get(i).get(j).dest + " ");
85 }
86 System. out.println();
87 }
88 }
89}
90
91class AdjNode{

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected