Compare edge by edgebasednodeids
This commit is contained in:
parent
4f54c90a95
commit
fe12ba23b0
@ -29,6 +29,12 @@ struct _GridEdge {
|
|||||||
int weight;
|
int weight;
|
||||||
_Coordinate startCoord;
|
_Coordinate startCoord;
|
||||||
_Coordinate targetCoord;
|
_Coordinate targetCoord;
|
||||||
|
bool operator< ( const _GridEdge& right) const {
|
||||||
|
return edgeBasedNode < right.edgeBasedNode;
|
||||||
|
}
|
||||||
|
bool operator== ( const _GridEdge& right) const {
|
||||||
|
return edgeBasedNode == right.edgeBasedNode;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GridEntry {
|
struct GridEntry {
|
||||||
|
Loading…
Reference in New Issue
Block a user