|
|
|
@ -124,13 +124,6 @@ namespace MWMechanics
|
|
|
|
|
}
|
|
|
|
|
buildConnectedPoints();
|
|
|
|
|
mIsGraphConstructed = true;
|
|
|
|
|
#if 0
|
|
|
|
|
std::cout << "loading pathgrid " <<
|
|
|
|
|
+"\""+ mPathgrid->mCell +"\""
|
|
|
|
|
+", "+ std::to_string(mPathgrid->mData.mX)
|
|
|
|
|
+", "+ std::to_string(mPathgrid->mData.mY)
|
|
|
|
|
<< std::endl;
|
|
|
|
|
#endif
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -211,11 +204,6 @@ namespace MWMechanics
|
|
|
|
|
if(mSCCPoint[v].first == -1) // undefined (haven't visited)
|
|
|
|
|
recursiveStrongConnect(v);
|
|
|
|
|
}
|
|
|
|
|
#if 0
|
|
|
|
|
std::cout << "components: " << std::to_string(mSCCId)
|
|
|
|
|
+", "+ mPathgrid->mCell
|
|
|
|
|
<< std::endl;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool PathgridGraph::isPointConnected(const int start, const int end) const
|
|
|
|
|