MCPcopy Index your code
hub / github.com/Hrishikesh332/Gen-TSP / read_input

Function read_input

utils.py:24–31  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

22
23
24def read_input(path):
25 cities = []
26 with open(path, "r") as input_file:
27 for line in input_file:
28 x, y = line.split(" ")
29 city = City(float(x), float(y))
30 cities.append(city)
31 return cities

Callers 2

genetic_tspFunction · 0.90
app.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected