Returna all edges in the graph
(self)
| 66 | return string.rstrip("\n") |
| 67 | |
| 68 | def get_edges(self): |
| 69 | """ |
| 70 | Returna all edges in the graph |
| 71 | """ |
| 72 | output = [] |
| 73 | for tail in self.adjacency: |
| 74 | for head in self.adjacency[tail]: |
| 75 | output.append((tail, head, self.adjacency[head][tail])) |
| 76 | return output |
| 77 | |
| 78 | def get_vertices(self): |
| 79 | """ |
no test coverage detected