calculate connection distances
This commit is contained in:
parent
82a859e958
commit
7b792ace8b
4 changed files with 13 additions and 8 deletions
|
@ -30,7 +30,7 @@ class Router():
|
|||
if not global_routing:
|
||||
self.transfer_points.add(point)
|
||||
continue
|
||||
matrix[pk, self.points_pk[to_point]] = 1
|
||||
matrix[pk, self.points_pk[to_point]] = connection.distance
|
||||
if global_routing:
|
||||
for to_point, distance in point.in_room_transfer_distances.items():
|
||||
matrix[pk, self.points_pk[to_point]] = distance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue