Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ get_vertices
Method
get_vertices
graphs/minimum_spanning_tree_boruvka.py:78–82 ·
view source on GitHub ↗
Returns all vertices in the graph
(self)
Source
from the content-addressed store, hash-verified
76
return
output
77
78
def
get_vertices(self):
79
""
"
80
Returns all vertices in the graph
81
""
"
82
return
self.adjacency.keys()
83
84
@staticmethod
85
def
build(vertices=None, edges=None):
Callers
1
boruvka_mst
Method · 0.80
Calls
1
keys
Method · 0.80
Tested by
no test coverage detected