MCPcopy 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_mstMethod · 0.80

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected