Check if PhantomNodes are on same Edge.

This commit is contained in:
Dennis Luxen 2011-07-18 15:48:30 +00:00
parent 5377e82ca0
commit ddc7e8b8c7

View File

@ -46,6 +46,14 @@ struct PhantomNodes {
startPhantom.Reset();
targetPhantom.Reset();
}
bool PhantomsAreOnSameEdge() const {
return ((startPhantom.startNode == startPhantom.targetNode && targetPhantom.startNode == targetPhantom.targetNode ) || (startPhantom.startNode == targetPhantom.targetNode && targetPhantom.startNode == startPhantom.targetNode));
}
bool AtLeastOnePhantomNodeIsUINTMAX() const {
return !(startPhantom.startNode == UINT_MAX || startPhantom.targetNode == UINT_MAX || targetPhantom.startNode == UINT_MAX || targetPhantom.targetNode == UINT_MAX);
}
};
std::ostream& operator<<(std::ostream &out, const PhantomNodes & pn){