It is way too late to fix silly bugs.
This commit is contained in:
parent
c36fc9e49f
commit
8f06b2fa31
@ -74,14 +74,14 @@ public:
|
|||||||
bool reverse = false;
|
bool reverse = false;
|
||||||
EdgeID currentEdge = _graph->FindEdge( phantomNodes->startNode1, phantomNodes->startNode2 );
|
EdgeID currentEdge = _graph->FindEdge( phantomNodes->startNode1, phantomNodes->startNode2 );
|
||||||
if(currentEdge == UINT_MAX){
|
if(currentEdge == UINT_MAX){
|
||||||
delete _forwardHeap;
|
currentEdge = _graph->FindEdge( phantomNodes->startNode2, phantomNodes->startNode1 );
|
||||||
delete _backwardHeap;
|
reverse = true;
|
||||||
return _upperbound;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currentEdge == UINT_MAX){
|
if(currentEdge == UINT_MAX){
|
||||||
currentEdge = _graph->FindEdge( phantomNodes->startNode2, phantomNodes->startNode1 );
|
delete _forwardHeap;
|
||||||
reverse = true;
|
delete _backwardHeap;
|
||||||
|
return _upperbound;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(phantomNodes->startRatio < phantomNodes->targetRatio && _graph->GetEdgeData(currentEdge).forward) {
|
if(phantomNodes->startRatio < phantomNodes->targetRatio && _graph->GetEdgeData(currentEdge).forward) {
|
||||||
|
Loading…
Reference in New Issue
Block a user