Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
graphs/minimum_spanning_tree_boruvka.py:6–9 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4
""
"
5
6
def
__init__(self):
7
self.num_vertices = 0
8
self.num_edges = 0
9
self.adjacency = {}
10
11
def
add_vertex(self, vertex):
12
""
"
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected