adjust extractor scc to new StaticGraph

This commit is contained in:
Michael Krasnyk
2017-02-22 14:15:07 +01:00
committed by Patrick Niklaus
parent 1541d32a42
commit f5e9c7df07
2 changed files with 13 additions and 32 deletions
+6 -5
View File
@@ -58,11 +58,12 @@ template <> struct SortableEdgeWithData<void>
bool operator<(const SortableEdgeWithData &right) const
{
if (source != right.source)
{
return source < right.source;
}
return target < right.target;
return std::tie(source, target) < std::tie(right.source, right.target);
}
bool operator==(const SortableEdgeWithData &right) const
{
return std::tie(source, target) == std::tie(right.source, right.target);
}
};