(self, num)
| 79 | |
| 80 | class Graph: |
| 81 | def __init__(self, num): |
| 82 | self.adjList = {} # To store graph: u -> (v,w) |
| 83 | self.num_nodes = num # Number of nodes in graph |
| 84 | # To store the distance from source vertex |
| 85 | self.dist = [0] * self.num_nodes |
| 86 | self.par = [-1] * self.num_nodes # To store the path |
| 87 | |
| 88 | def add_edge(self, u, v, w): |
| 89 | # Edge going from node u to v and v to u with weight w |
nothing calls this directly
no outgoing calls
no test coverage detected