moving common code to parent class

This commit is contained in:
Dennis Luxen 2013-09-24 10:57:54 +02:00
parent 687e58e9d4
commit 1dab0ebc25

View File

@ -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_ */