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

Method reverse

numpy_ml/utils/graphs.py:40–42  ·  view source on GitHub ↗

Reverse the edge direction

(self)

Source from the content-addressed store, hash-verified

38 return self._w.sample() if hasattr(self._w, "sample") else self._w
39
40 def reverse(self):
41 """Reverse the edge direction"""
42 return Edge(self.t, self.f, self.w)
43
44
45#######################################################################

Callers 2

reverseMethod · 0.45
_build_adjacency_listMethod · 0.45

Calls 1

EdgeClass · 0.85

Tested by

no test coverage detected