diff --git a/lemon/bits/graph_extender.h b/lemon/bits/graph_extender.h --- a/lemon/bits/graph_extender.h +++ b/lemon/bits/graph_extender.h @@ -367,10 +367,10 @@ } Node oppositeNode(const Node &n, const Edge &e) const { - if( n == Parent::source(e)) - return Parent::target(e); - else if( n == Parent::target(e)) - return Parent::source(e); + if( n == Parent::u(e)) + return Parent::v(e); + else if( n == Parent::v(e)) + return Parent::u(e); else return INVALID; } @@ -381,7 +381,7 @@ using Parent::direct; Arc direct(const Edge &edge, const Node &node) const { - return Parent::direct(edge, Parent::source(edge) == node); + return Parent::direct(edge, Parent::u(edge) == node); } // Alterable extension @@ -586,13 +586,13 @@ /// /// Returns the base node of the iterator Node baseNode(const IncEdgeIt &edge) const { - return edge._direction ? source(edge) : target(edge); + return edge._direction ? u(edge) : v(edge); } /// Running node of the iterator /// /// Returns the running node of the iterator Node runningNode(const IncEdgeIt &edge) const { - return edge._direction ? target(edge) : source(edge); + return edge._direction ? v(edge) : u(edge); } // Mappable extension diff --git a/lemon/concepts/digraph.h b/lemon/concepts/digraph.h --- a/lemon/concepts/digraph.h +++ b/lemon/concepts/digraph.h @@ -467,12 +467,12 @@ } }; - template + template struct Constraints { void constraints() { - checkConcept, Digraph>(); - checkConcept, Digraph>(); - checkConcept, Digraph>(); + checkConcept, _Digraph>(); + checkConcept, _Digraph>(); + checkConcept, _Digraph>(); } }; diff --git a/lemon/concepts/graph.h b/lemon/concepts/graph.h --- a/lemon/concepts/graph.h +++ b/lemon/concepts/graph.h @@ -731,12 +731,12 @@ return INVALID; } - template + template struct Constraints { void constraints() { - checkConcept, Graph>(); - checkConcept, Graph>(); - checkConcept, Graph>(); + checkConcept, _Graph>(); + checkConcept, _Graph>(); + checkConcept, _Graph>(); } }; diff --git a/lemon/smart_graph.h b/lemon/smart_graph.h --- a/lemon/smart_graph.h +++ b/lemon/smart_graph.h @@ -470,8 +470,8 @@ Node source(Arc e) const { return Node(arcs[e._id ^ 1].target); } Node target(Arc e) const { return Node(arcs[e._id].target); } - Node source(Edge e) const { return Node(arcs[2 * e._id].target); } - Node target(Edge e) const { return Node(arcs[2 * e._id + 1].target); } + Node u(Edge e) const { return Node(arcs[2 * e._id].target); } + Node v(Edge e) const { return Node(arcs[2 * e._id + 1].target); } static bool direction(Arc e) { return (e._id & 1) == 1;