Check that each shortcut is unpackable in debug mode
This commit is contained in:
parent
88890a1914
commit
a65339d011
@ -100,9 +100,15 @@ public:
|
|||||||
EdgeData & data = GetEdgeData(eid);
|
EdgeData & data = GetEdgeData(eid);
|
||||||
if(data.shortcut) {
|
if(data.shortcut) {
|
||||||
unsigned eid2 = FindEdgeInEitherDirection(u, data.via);
|
unsigned eid2 = FindEdgeInEitherDirection(u, data.via);
|
||||||
assert(eid2 != UINT_MAX);
|
if(eid2 == UINT_MAX) {
|
||||||
|
DEBUG("cannot find first segment of edge (" << u << "," << data.via << "," << v << ")");
|
||||||
|
data.shortcut = false;
|
||||||
|
}
|
||||||
eid2 = FindEdgeInEitherDirection(data.via, v);
|
eid2 = FindEdgeInEitherDirection(data.via, v);
|
||||||
assert(eid2 != UINT_MAX);
|
if(eid2 == UINT_MAX) {
|
||||||
|
DEBUG("cannot find second segment of edge (" << u << "," << data.via << "," << v << ")");
|
||||||
|
data.shortcut = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.printIncrement();
|
p.printIncrement();
|
||||||
|
Loading…
Reference in New Issue
Block a user