refactor graph code

This commit is contained in:
Laura Klünder 2016-12-10 12:07:52 +01:00
parent e6978c6e61
commit 57ed2ec368
4 changed files with 65 additions and 51 deletions

View file

@ -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: