MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / get_index

Method get_index

numpy_ml/utils/graphs.py:63–65  ·  view source on GitHub ↗

Get the internal index for a given vetex

(self, v)

Source from the content-addressed store, hash-verified

61 return self.get_neighbors(v_i)
62
63 def get_index(self, v):
64 """Get the internal index for a given vetex"""
65 return self._V2I[v]
66
67 def get_vertex(self, v_i):
68 """Get the original vertex from a given internal index"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected