src/lemon/smart_graph.h
changeset 1139 f59038affc7e
parent 1082 e9eae612f01c
child 1161 1c9658d51c8d
equal deleted inserted replaced
17:a8900b69369e 18:256b297a13c5
   119     ///
   119     ///
   120     /// The ID of the \ref INVALID edge is -1.
   120     /// The ID of the \ref INVALID edge is -1.
   121     ///\return The ID of the edge \c e. 
   121     ///\return The ID of the edge \c e. 
   122     static int id(Edge e) { return e.n; }
   122     static int id(Edge e) { return e.n; }
   123 
   123 
       
   124     static Node fromId(int id, Node) { return Node(id);}
       
   125 
       
   126     static Edge fromId(int id, Edge) { return Edge(id);}
       
   127 
   124     Node addNode() {
   128     Node addNode() {
   125       Node n; n.n=nodes.size();
   129       Node n; n.n=nodes.size();
   126       nodes.push_back(NodeT()); //FIXME: Hmmm...
   130       nodes.push_back(NodeT()); //FIXME: Hmmm...
   127       return n;
   131       return n;
   128     }
   132     }