This commit is contained in:
Luigi Malomo 2021-11-17 15:43:42 +01:00
parent 2c1279f880
commit 22b9044222
1 changed files with 6 additions and 12 deletions

View File

@ -207,19 +207,13 @@ public:
typedef SimpleTempData<std::vector<VertexType>, TempData > TempDataType; typedef SimpleTempData<std::vector<VertexType>, TempData > TempDataType;
class pred { struct pred {
public: pred() {};
pred () {}; bool operator()(const VertDist& v0, const VertDist& v1) const {
bool operator()(const VertDist& v0, const VertDist& v1) const return (v0.d > v1.d);
{return (v0.d > v1.d);} }
}; };
//struct pred: public std::binary_function<VertDist,VertDist,bool>{
// pred(){}
// bool operator()(const VertDist& v0, const VertDist& v1) const
// {return (v0.d > v1.d);}
//};
/* /*
* *
curr: vertex for which distance should be estimated curr: vertex for which distance should be estimated