From f2cd68e3ec999d3a095e604147f268aa950c274b Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Fri, 17 Apr 2015 00:20:37 +0200 Subject: [PATCH] Return SPECIAL_EDGEID if no edge was found --- data_structures/dynamic_graph.hpp | 2 +- data_structures/static_graph.hpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/data_structures/dynamic_graph.hpp b/data_structures/dynamic_graph.hpp index 021a3bc37..e6773b3d1 100644 --- a/data_structures/dynamic_graph.hpp +++ b/data_structures/dynamic_graph.hpp @@ -262,7 +262,7 @@ template class DynamicGraph return i; } } - return EndEdges(from); + return SPECIAL_EDGEID; } // searches for a specific edge diff --git a/data_structures/static_graph.hpp b/data_structures/static_graph.hpp index 09ba2c436..7434b56de 100644 --- a/data_structures/static_graph.hpp +++ b/data_structures/static_graph.hpp @@ -35,8 +35,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#include - #include #include #include @@ -165,7 +163,7 @@ template class StaticGraph return i; } } - return EndEdges(from); + return SPECIAL_EDGEID; } // searches for a specific edge