moving common code to parent class
This commit is contained in:
parent
f2d9e4b2df
commit
cc48546f62
@ -306,6 +306,11 @@ public:
|
|||||||
packed_path.push_back(current_node_id);
|
packed_path.push_back(current_node_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int ComputeEdgeOffset(const PhantomNode & phantom) const {
|
||||||
|
return phantom.weight1 + (phantom.isBidirected() ? phantom.weight2 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* BASICROUTINGINTERFACE_H_ */
|
#endif /* BASICROUTINGINTERFACE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user