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

Method __init__

Python/Kruskal's_Algorithm.py:5–7  ·  view source on GitHub ↗
(self, vertices)

Source from the content-addressed store, hash-verified

3
4class Graph:
5 def __init__(self, vertices):
6 self.V = vertices
7 self.graph = []
8
9 def add_edge(self, u, v, w):
10 self.graph.append([u, v, w])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected