lemon/concept/path.h
changeset 1626 e251336be488
parent 1435 8e85e6bbefdf
child 1643 9285f3777553
equal deleted inserted replaced
0:db8f94c36b21 1:1af610529461
    50       /// Node type of the underlying graph.
    50       /// Node type of the underlying graph.
    51      typedef typename Graph::Node GraphNode;
    51      typedef typename Graph::Node GraphNode;
    52       class NodeIt;
    52       class NodeIt;
    53       class EdgeIt;
    53       class EdgeIt;
    54 
    54 
    55       /// \param _G The graph in which the path is.
    55       /// \param _g The graph in which the path is.
    56       ///
    56       ///
    57       Path(const Graph &) {}
    57       Path(const Graph &_g) {}
    58 
    58 
    59       /// Length of the path.
    59       /// Length of the path.
    60       int length() const {return 0;}
    60       int length() const {return 0;}
    61       /// Returns whether the path is empty.
    61       /// Returns whether the path is empty.
    62       bool empty() const { return true;}
    62       bool empty() const { return true;}
   179       class Builder {
   179       class Builder {
   180       public:
   180       public:
   181 
   181 
   182         Path &P;
   182         Path &P;
   183 
   183 
   184 	///\param _P the path you want to fill in.
   184 	///\param _p the path you want to fill in.
   185 	///
   185 	///
   186 
   186 
   187 	Builder(Path &_p) : P(_p) {}
   187 	Builder(Path &_p) : P(_p) {}
   188 
   188 
   189 	/// Sets the starting node of the path.
   189 	/// Sets the starting node of the path.