src/lemon/max_matching.h
changeset 1173 099978eee03f
parent 1166 db3d437560f3
child 1177 e41c2907fb49
equal deleted inserted replaced
6:cd3ee1b0edc4 7:cde4e5b70991
   159 
   159 
   160     ///Reads a matching from an \c UndirEdge valued \c Node map. \c
   160     ///Reads a matching from an \c UndirEdge valued \c Node map. \c
   161     ///map[v] must be an \c UndirEdge incident to \c v. This map must
   161     ///map[v] must be an \c UndirEdge incident to \c v. This map must
   162     ///have the property that if \c g.oppositeNode(u,map[u])==v then
   162     ///have the property that if \c g.oppositeNode(u,map[u])==v then
   163     ///\c \c g.oppositeNode(v,map[v])==u holds, and now some edge
   163     ///\c \c g.oppositeNode(v,map[v])==u holds, and now some edge
   164     ///joining \c u to \v will be an edge of the matching.
   164     ///joining \c u to \c v will be an edge of the matching.
   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 )