# HG changeset patch # User Peter Kovacs # Date 1241879999 -7200 # Node ID bf7928412136b879be4657e7b921ad67f4aaae99 # Parent cb38ccedd2c1335c38de0a85aad55e1feb20f6bf Change Graph::Edge -> Graph::Arc inheritance to conversion (#283) diff -r cb38ccedd2c1 -r bf7928412136 lemon/concepts/graph.h --- a/lemon/concepts/graph.h Thu May 07 10:46:49 2009 +0200 +++ b/lemon/concepts/graph.h Sat May 09 16:39:59 2009 +0200 @@ -310,8 +310,8 @@ /// The directed arc type. It can be converted to the /// edge or it should be inherited from the undirected - /// arc. - class Arc : public Edge { + /// edge. + class Arc { public: /// Default constructor @@ -322,7 +322,7 @@ /// Copy constructor. /// - Arc(const Arc& e) : Edge(e) { } + Arc(const Arc&) { } /// Initialize the iterator to be invalid. /// Initialize the iterator to be invalid. @@ -349,6 +349,8 @@ /// ordering of the items. bool operator<(Arc) const { return false; } + /// Converison to Edge + operator Edge() const { return Edge(); } }; /// This iterator goes through each directed arc.