src/lemon/max_matching.h
changeset 1166 db3d437560f3
parent 1165 c5e56125959a
child 1172 37338ae42a2b
equal deleted inserted replaced
5:4c84c7433571 6:cd3ee1b0edc4
   165     template<typename NMapE>
   165     template<typename NMapE>
   166     void readNMapEdge(NMapE& map) {
   166     void readNMapEdge(NMapE& map) {
   167      for(NodeIt v(g); v!=INVALID; ++v) {
   167      for(NodeIt v(g); v!=INVALID; ++v) {
   168 	UndirEdge e=map[v];
   168 	UndirEdge e=map[v];
   169 	if ( e!=INVALID )
   169 	if ( e!=INVALID )
   170 	  g.source(e) == v ? _mate.set(v,g.target(e)) : _mate.set(v,g.source(e)); 
   170 	  _mate.set(v,g.oppositeNode(v,e));
   171       } 
   171       } 
   172     } 
   172     } 
   173     
   173     
   174     ///Writes the matching stored to an \c UndirEdge valued \c Node map.
   174     ///Writes the matching stored to an \c UndirEdge valued \c Node map.
   175 
   175