src/hugo/list_graph.h
changeset 761 58243a389464
parent 713 57c0b110b31e
child 774 4297098d9677
equal deleted inserted replaced
8:c268ae843e0f 9:8c905c2a6c9d
   314       friend class InEdgeIt;
   314       friend class InEdgeIt;
   315       friend class SymEdge;
   315       friend class SymEdge;
   316 
   316 
   317     protected:
   317     protected:
   318       int n;
   318       int n;
   319       friend int ListGraph::id(Node v) const; 
   319       friend int ListGraph::id(Node v); 
   320       Node(int nn) {n=nn;}
   320       Node(int nn) {n=nn;}
   321     public:
   321     public:
   322       Node() {}
   322       Node() {}
   323       Node (Invalid) { n=-1; }
   323       Node (Invalid) { n=-1; }
   324       bool operator==(const Node i) const {return n==i.n;}
   324       bool operator==(const Node i) const {return n==i.n;}
   345       
   345       
   346       friend class Node;
   346       friend class Node;
   347       friend class NodeIt;
   347       friend class NodeIt;
   348     protected:
   348     protected:
   349       int n;
   349       int n;
   350       friend int ListGraph::id(Edge e) const;
   350       friend int ListGraph::id(Edge e);
   351 
   351 
   352     public:
   352     public:
   353       /// An Edge with id \c n.
   353       /// An Edge with id \c n.
   354 
   354 
   355       /// \bug It should be
   355       /// \bug It should be