From b7c8fcd0625595dba7373b1af20d7280a963c37a Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Fri, 15 May 2015 15:18:34 +0200 Subject: [PATCH] Also print edge source/target for suspicious edge weights --- contractor/contractor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contractor/contractor.hpp b/contractor/contractor.hpp index e4a278c71..4468f5e49 100644 --- a/contractor/contractor.hpp +++ b/contractor/contractor.hpp @@ -171,7 +171,8 @@ class Contractor { SimpleLogger().Write(logWARNING) << "Edge weight large -> " - << static_cast(std::max(diter->weight, 1)); + << static_cast(std::max(diter->weight, 1)) << " : " + << static_cast(diter->source) << " -> " << static_cast(diter->target); } #endif edges.emplace_back(diter->source, diter->target,