src/hugo/path.h
changeset 835 eb9587f09b42
parent 834 1dd3167db044
child 837 2d50d1f045c5
equal deleted inserted replaced
2:63588b4333f5 3:fa4945e50886
   638       ///Push a new edge to the back of the path
   638       ///Push a new edge to the back of the path
   639 
   639 
   640       ///Push a new edge to the back of the path.
   640       ///Push a new edge to the back of the path.
   641       ///\sa setStartNode
   641       ///\sa setStartNode
   642       void pushBack(const GraphEdge& e) {
   642       void pushBack(const GraphEdge& e) {
   643 	if( !empty() && P.gr->tail(e)!=head() ) {
       
   644 	  fault("UndirPath::Builder::pushBack: nonincident edge");
       
   645 	}
       
   646 	back.push_back(e);
   643 	back.push_back(e);
   647       }
   644       }
   648 
   645 
   649       ///Commit the changes to the path.
   646       ///Commit the changes to the path.
   650       void commit() {
   647       void commit() {