src/lemon/full_graph.h
changeset 1106 0a7d604a9763
parent 1039 bd01c5a3f989
child 1161 1c9658d51c8d
     1.1 --- a/src/lemon/full_graph.h	Fri Jan 28 15:19:34 2005 +0000
     1.2 +++ b/src/lemon/full_graph.h	Fri Jan 28 15:37:08 2005 +0000
     1.3 @@ -102,6 +102,10 @@
     1.4      ///\return The ID of the edge \c e. 
     1.5      static int id(Edge e) { return e.id; }
     1.6  
     1.7 +    static Node fromId(int id, Node) { return Node(id);}
     1.8 +    
     1.9 +    static Edge fromId(int id, Edge) { return Edge(id);}
    1.10 +
    1.11      /// Finds an edge between two nodes.
    1.12      
    1.13      /// Finds an edge from node \c u to node \c v.