src/lemon/undir_graph_extender.h
changeset 1041 9d503ce002db
parent 1021 fd1d073b6557
child 1053 90f8696360b2
equal deleted inserted replaced
4:2526add56e1c 5:13ada8137d67
   106     ///
   106     ///
   107     /// \todo reference to the corresponding point of the undirected graph
   107     /// \todo reference to the corresponding point of the undirected graph
   108     /// concept. "What does the direction of an undirected edge mean?"
   108     /// concept. "What does the direction of an undirected edge mean?"
   109     bool forward(const Edge &e) const { return e.forward; }
   109     bool forward(const Edge &e) const { return e.forward; }
   110 
   110 
   111     Node oppsiteNode(const Node &n, const Edge &e) const {
   111     Node oppositeNode(const Node &n, const UndirEdge &e) const {
   112       if( n == Parent::source(e))
   112       if( n == Parent::source(e))
   113 	return Parent::target(e);
   113 	return Parent::target(e);
   114       else if( n == Parent::target(e))
   114       else if( n == Parent::target(e))
   115 	return Parent::source(e);
   115 	return Parent::source(e);
   116       else
   116       else