MCPcopy Index your code
hub / github.com/SpaceNetLab/StarryNet / do_get_neighbors

Method do_get_neighbors

starrynet/cli.py:148–153  ·  view source on GitHub ↗

list the neighbor node indexes of node at a certain time

(self, line)

Source from the content-addressed store, hash-verified

146 (int(rest[0]), int(rest[1]), node_distance))
147
148 def do_get_neighbors(self, line):
149 "list the neighbor node indexes of node at a certain time"
150 arg, args, line = self.parseline(line)
151 rest = line.split(' ')
152 neighbors_index = self.sn.get_neighbors(int(rest[0]), int(rest[1]))
153 output("The neighbors are: " + str(neighbors_index) + ".\n")
154
155 def do_get_GSes(self, line):
156 "list the GS connected to the node at a certain time"

Callers

nothing calls this directly

Calls 1

get_neighborsMethod · 0.80

Tested by

no test coverage detected