MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / printGraph

Method printGraph

Graphs/depth_first_search.py:13–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12 # for printing the Graph vertexes
13 def printGraph(self):
14 print(self.vertex)
15 for i in self.vertex.keys():
16 print(i,' -> ', ' -> '.join([str(j) for j in self.vertex[i]]))
17
18 # for adding the edge beween two vertexes
19 def addEdge(self, fromVertex, toVertex):

Callers 1

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected