Encode directed graph as an adjancency list
(self)
| 187 | self._topological_ordering = [] |
| 188 | |
| 189 | def _build_adjacency_list(self): |
| 190 | """Encode directed graph as an adjancency list""" |
| 191 | # assumes no parallel edges |
| 192 | for e in self.edges: |
| 193 | fr_i = self._V2I[e.fr] |
| 194 | self._G[fr_i].add(e) |
| 195 | |
| 196 | def reverse(self): |
| 197 | """Reverse the direction of all edges in the graph""" |
nothing calls this directly
no outgoing calls
no test coverage detected