From 1dab0ebc25d2c10f5a79456511c76353038c0290 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 24 Sep 2013 10:57:54 +0200 Subject: [PATCH] moving common code to parent class --- RoutingAlgorithms/BasicRoutingInterface.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RoutingAlgorithms/BasicRoutingInterface.h b/RoutingAlgorithms/BasicRoutingInterface.h index f976aea76..8eab47cdb 100644 --- a/RoutingAlgorithms/BasicRoutingInterface.h +++ b/RoutingAlgorithms/BasicRoutingInterface.h @@ -311,6 +311,11 @@ public: packed_path.push_back(current_node_id); } } + + int ComputeEdgeOffset(const PhantomNode & phantom) const { + return phantom.weight1 + (phantom.isBidirected() ? phantom.weight2 : 0); + } + }; #endif /* BASICROUTINGINTERFACE_H_ */