MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __repr__

Method __repr__

graphs/graph_adjacency_matrix.py:198–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 self.adj_matrix = []
197
198 def __repr__(self) -> str:
199 first = "Adj Matrix:\n" + pformat(self.adj_matrix)
200 second = "\nVertex to index mapping:\n" + pformat(self.vertex_to_index)
201 return first + second
202
203
204class TestGraphMatrix(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected