Check if PhantomNodes are on same Edge.
This commit is contained in:
parent
5377e82ca0
commit
ddc7e8b8c7
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user