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

Method __getitem__

numpy_ml/utils/graphs.py:60–61  ·  view source on GitHub ↗
(self, v_i)

Source from the content-addressed store, hash-verified

58 self._build_adjacency_list()
59
60 def __getitem__(self, v_i):
61 return self.get_neighbors(v_i)
62
63 def get_index(self, v):
64 """Get the internal index for a given vetex"""

Callers

nothing calls this directly

Calls 1

get_neighborsMethod · 0.95

Tested by

no test coverage detected