[Lemon-devel] Fix PredMapPath::empty()
Gabor Retvari
retvari at tmit.bme.hu
Sun Apr 11 22:38:04 CEST 2010
Dear all,
I think the below behavior of PredMapPath::empty() makes more sense.
Regards,
Gabor
################
# HG changeset patch
# User retvari at everything
# Date 1271017722 -7200
# Node ID 6e741754566a2075505527319b57862baf59931f
# Parent 6dd226d3dcbaa9f7474a9b9f445f1c617d65d481
Fix PredMapPath::empty()
diff --git a/lemon/bits/path_dump.h b/lemon/bits/path_dump.h
--- a/lemon/bits/path_dump.h
+++ b/lemon/bits/path_dump.h
@@ -49,7 +49,7 @@
}
bool empty() const {
- return predMap[target] != INVALID;
+ return predMap[target] == INVALID;
}
class RevArcIt {
More information about the Lemon-devel
mailing list