src/hugo/smart_graph.h
changeset 706 0fe42b8ec5a6
parent 590 5c1465127b79
child 713 57c0b110b31e
equal deleted inserted replaced
3:56fd5a08a117 4:5aa97915b27b
   235       friend class NodeIt;
   235       friend class NodeIt;
   236     protected:
   236     protected:
   237       int n;
   237       int n;
   238       friend int SmartGraph::id(Edge e) const;
   238       friend int SmartGraph::id(Edge e) const;
   239 
   239 
       
   240     public:
       
   241       /// An Edge with id \c n.
       
   242 
       
   243       /// \bug It should be
       
   244       /// obtained by a member function of the Graph.
   240       Edge(int nn) {n=nn;}
   245       Edge(int nn) {n=nn;}
   241     public:
       
   242       Edge() { }
   246       Edge() { }
   243       Edge (Invalid) { n=-1; }
   247       Edge (Invalid) { n=-1; }
   244       bool operator==(const Edge i) const {return n==i.n;}
   248       bool operator==(const Edge i) const {return n==i.n;}
   245       bool operator!=(const Edge i) const {return n!=i.n;}
   249       bool operator!=(const Edge i) const {return n!=i.n;}
   246       bool operator<(const Edge i) const {return n<i.n;}
   250       bool operator<(const Edge i) const {return n<i.n;}