[Lemon-commits] Peter Kovacs: Fix various rename bugs
Lemon HG
hg at lemon.cs.elte.hu
Sun Jun 15 22:36:45 CEST 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/5b507a86ad72
changeset: 169:5b507a86ad72
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Sun Jun 15 09:19:53 2008 +0200
description:
Fix various rename bugs
diffstat:
3 files changed, 9 insertions(+), 11 deletions(-)
lemon/concepts/graph_components.h | 4 ++--
lemon/dijkstra.h | 4 +---
lemon/graph_utils.h | 12 ++++++------
diffs (79 lines):
diff -r 8ceb318224b1 -r 5b507a86ad72 lemon/concepts/graph_components.h
--- a/lemon/concepts/graph_components.h Sat Jun 14 19:52:08 2008 +0200
+++ b/lemon/concepts/graph_components.h Sun Jun 15 09:19:53 2008 +0200
@@ -1424,8 +1424,8 @@
checkConcept<Base, _Graph>();
typename _Graph::Node node;
graph.erase(node);
- typename _Graph::Arc arc;
- graph.erase(arc);
+ typename _Graph::Edge edge;
+ graph.erase(edge);
}
_Graph& graph;
diff -r 8ceb318224b1 -r 5b507a86ad72 lemon/dijkstra.h
--- a/lemon/dijkstra.h Sat Jun 14 19:52:08 2008 +0200
+++ b/lemon/dijkstra.h Sun Jun 15 09:19:53 2008 +0200
@@ -22,15 +22,13 @@
///\ingroup shortest_path
///\file
///\brief Dijkstra algorithm.
-///
-#include <lemon/list_digraph.h>
+#include <lemon/list_graph.h>
#include <lemon/bin_heap.h>
#include <lemon/bits/path_dump.h>
#include <lemon/bits/invalid.h>
#include <lemon/error.h>
#include <lemon/maps.h>
-
namespace lemon {
diff -r 8ceb318224b1 -r 5b507a86ad72 lemon/graph_utils.h
--- a/lemon/graph_utils.h Sat Jun 14 19:52:08 2008 +0200
+++ b/lemon/graph_utils.h Sun Jun 15 09:19:53 2008 +0200
@@ -402,10 +402,10 @@
if (e == INVALID) {
g.firstInc(e, b, u);
} else {
- b = g.source(e) == u;
+ b = g.u(e) == u;
g.nextInc(e, b);
}
- while (e != INVALID && (b ? g.target(e) : g.source(e)) != v) {
+ while (e != INVALID && (b ? g.v(e) : g.u(e)) != v) {
g.nextInc(e, b);
}
} else {
@@ -415,7 +415,7 @@
b = true;
g.nextInc(e, b);
}
- while (e != INVALID && (!b || g.target(e) != v)) {
+ while (e != INVALID && (!b || g.v(e) != v)) {
g.nextInc(e, b);
}
}
@@ -455,7 +455,7 @@
/// }
///\endcode
///
- ///\sa ConArcIt
+ ///\sa ConEdgeIt
template <typename Graph>
inline typename Graph::Edge
@@ -504,8 +504,8 @@
///
/// It increments the iterator and gives back the next edge.
ConEdgeIt& operator++() {
- Parent::operator=(findEdge(_graph, _graph.source(*this),
- _graph.target(*this), *this));
+ Parent::operator=(findEdge(_graph, _graph.u(*this),
+ _graph.v(*this), *this));
return *this;
}
private:
More information about the Lemon-commits
mailing list