Reverse the direction of all edges in the graph
(self)
| 194 | self._G[fr_i].add(e) |
| 195 | |
| 196 | def reverse(self): |
| 197 | """Reverse the direction of all edges in the graph""" |
| 198 | return DiGraph(self.vertices, [e.reverse() for e in self.edges]) |
| 199 | |
| 200 | def topological_ordering(self): |
| 201 | """ |