# HG changeset patch # User alpar # Date 1090243772 0 # Node ID 0fe42b8ec5a630d72b5fa4deba3429fd79ce9284 # Parent 9d9557b56eb7d0f470f712c06609cb82703410cc Temporal change: public Edge constructor with given ID. diff -r 9d9557b56eb7 -r 0fe42b8ec5a6 src/hugo/list_graph.h --- a/src/hugo/list_graph.h Thu Jul 15 17:56:34 2004 +0000 +++ b/src/hugo/list_graph.h Mon Jul 19 13:29:32 2004 +0000 @@ -349,8 +349,13 @@ int n; friend int ListGraph::id(Edge e) const; + public: + /// An Edge with id \c n. + + /// \bug It should be + /// obtained by a member function of the Graph. Edge(int nn) {n=nn;} - public: + Edge() { } Edge (Invalid) { n=-1; } bool operator==(const Edge i) const {return n==i.n;} diff -r 9d9557b56eb7 -r 0fe42b8ec5a6 src/hugo/smart_graph.h --- a/src/hugo/smart_graph.h Thu Jul 15 17:56:34 2004 +0000 +++ b/src/hugo/smart_graph.h Mon Jul 19 13:29:32 2004 +0000 @@ -237,8 +237,12 @@ int n; friend int SmartGraph::id(Edge e) const; + public: + /// An Edge with id \c n. + + /// \bug It should be + /// obtained by a member function of the Graph. Edge(int nn) {n=nn;} - public: Edge() { } Edge (Invalid) { n=-1; } bool operator==(const Edge i) const {return n==i.n;}