lemon/kruskal.h
changeset 1777 a70cee06ae9c
parent 1631 e15162d8eca1
child 1875 98698b69a902
equal deleted inserted replaced
7:13f78ebbd20b 8:7e5e16c16985
   227     template<class _GR>
   227     template<class _GR>
   228     typename enable_if<typename _GR::UndirTag,void>::type
   228     typename enable_if<typename _GR::UndirTag,void>::type
   229     fillWithEdges(const _GR& g, const Map& m,dummy<0> = 0) 
   229     fillWithEdges(const _GR& g, const Map& m,dummy<0> = 0) 
   230     {
   230     {
   231       for(typename GR::UndirEdgeIt e(g);e!=INVALID;++e) 
   231       for(typename GR::UndirEdgeIt e(g);e!=INVALID;++e) 
   232 	push_back(value_type(typename GR::Edge(e,true), m[e]));
   232 	push_back(value_type(g.direct(e, true), m[e]));
   233     }
   233     }
   234 
   234 
   235     template<class _GR>
   235     template<class _GR>
   236     typename disable_if<typename _GR::UndirTag,void>::type
   236     typename disable_if<typename _GR::UndirTag,void>::type
   237     fillWithEdges(const _GR& g, const Map& m,dummy<1> = 1) 
   237     fillWithEdges(const _GR& g, const Map& m,dummy<1> = 1)