Clears all vertices and edges.
(self)
| 189 | return self.adj_matrix[u][v] == 1 |
| 190 | |
| 191 | def clear_graph(self) -> None: |
| 192 | """ |
| 193 | Clears all vertices and edges. |
| 194 | """ |
| 195 | self.vertex_to_index = {} |
| 196 | self.adj_matrix = [] |
| 197 | |
| 198 | def __repr__(self) -> str: |
| 199 | first = "Adj Matrix:\n" + pformat(self.adj_matrix) |
nothing calls this directly
no outgoing calls
no test coverage detected