Use >= 0 to include routes where start/end is the same
This commit is contained in:
		
							parent
							
								
									d741b624be
								
							
						
					
					
						commit
						23132e5292
					
				| @ -171,7 +171,7 @@ template <class DataFacadeT> class ManyToManyRouting final : public BasicRouting | ||||
|                     (*result_table)[source_id * number_of_locations + target_id]; | ||||
|                 // check if new distance is better
 | ||||
|                 const EdgeWeight new_distance = source_distance + target_distance; | ||||
|                 if (new_distance > 0 && new_distance < current_distance) | ||||
|                 if (new_distance >= 0 && new_distance < current_distance) | ||||
|                 { | ||||
|                     (*result_table)[source_id * number_of_locations + target_id] = | ||||
|                         (source_distance + target_distance); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user