src/hugo/smart_graph.h
changeset 749 8e933219691e
parent 713 57c0b110b31e
child 753 f5382a084c07
equal deleted inserted replaced
5:d87942f89905 6:1d5d195a6ad9
   202       friend class InEdgeIt;
   202       friend class InEdgeIt;
   203       friend class SymEdge;
   203       friend class SymEdge;
   204 
   204 
   205     protected:
   205     protected:
   206       int n;
   206       int n;
   207       friend int SmartGraph::id(Node v) const; 
   207       friend int SmartGraph::id(Node v); 
   208       Node(int nn) {n=nn;}
   208       Node(int nn) {n=nn;}
   209     public:
   209     public:
   210       Node() {}
   210       Node() {}
   211       Node (Invalid) { n=-1; }
   211       Node (Invalid) { n=-1; }
   212       bool operator==(const Node i) const {return n==i.n;}
   212       bool operator==(const Node i) const {return n==i.n;}
   233       
   233       
   234       friend class Node;
   234       friend class Node;
   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);
   239 
   239 
   240     public:
   240     public:
   241       /// An Edge with id \c n.
   241       /// An Edge with id \c n.
   242 
   242 
   243       /// \bug It should be
   243       /// \bug It should be