Return SPECIAL_EDGEID if no edge was found

This commit is contained in:
Patrick Niklaus
2015-04-17 00:20:37 +02:00
parent aff590a44d
commit f2cd68e3ec
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ template <typename EdgeDataT> class DynamicGraph
return i; return i;
} }
} }
return EndEdges(from); return SPECIAL_EDGEID;
} }
// searches for a specific edge // searches for a specific edge
+1 -3
View File
@@ -35,8 +35,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <boost/assert.hpp> #include <boost/assert.hpp>
#include <tbb/parallel_sort.h>
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include <utility> #include <utility>
@@ -165,7 +163,7 @@ template <typename EdgeDataT, bool UseSharedMemory = false> class StaticGraph
return i; return i;
} }
} }
return EndEdges(from); return SPECIAL_EDGEID;
} }
// searches for a specific edge // searches for a specific edge