From bcc0134aa6e19a3117d0aa50d6e85cec65f14530 Mon Sep 17 00:00:00 2001 From: "Dongxu.Wang" Date: Fri, 4 Aug 2017 15:38:36 +0800 Subject: [PATCH] The inner loop also use temp control variable "i" The inner loop and outer loop use the same temp control variable "i". The inner one should be changed to "j". --- src/YenTopKShortestPathsAlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YenTopKShortestPathsAlg.cpp b/src/YenTopKShortestPathsAlg.cpp index cc241bf..8adbb8a 100644 --- a/src/YenTopKShortestPathsAlg.cpp +++ b/src/YenTopKShortestPathsAlg.cpp @@ -82,9 +82,9 @@ BasePath* YenTopKShortestPathsAlg::next() if (sub_path_length != cur_result_sub_path_of_derivation_pt.size()) continue; bool is_equal = true; - for (int i=0; i