MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / reverse

Method reverse

numpy_ml/utils/graphs.py:196–198  ·  view source on GitHub ↗

Reverse the direction of all edges in the graph

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

DiGraphClass · 0.85
reverseMethod · 0.45

Tested by

no test coverage detected