refactor graph code
This commit is contained in:
parent
e6978c6e61
commit
57ed2ec368
4 changed files with 65 additions and 51 deletions
|
@ -27,8 +27,6 @@ class Router():
|
|||
for point, pk in self.points_pk.items():
|
||||
for to_point, connection in point.connections.items():
|
||||
if to_point not in self.points_pk:
|
||||
if not global_routing:
|
||||
self.transfer_points.add(point)
|
||||
continue
|
||||
matrix[pk, self.points_pk[to_point]] = connection.distance
|
||||
if global_routing:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue