Changeset 1909:2d806130e700 in lemon0.x for lemon/kruskal.h
 Timestamp:
 01/26/06 16:42:13 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2484
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/kruskal.h
r1875 r1909 52 52 /// \param g The graph the algorithm runs on. 53 53 /// It can be either \ref concept::StaticGraph "directed" or 54 /// \ref concept::U ndirGraph "undirected".54 /// \ref concept::UGraph "undirected". 55 55 /// If the graph is directed, the algorithm consider it to be 56 56 /// undirected by disregarding the direction of the edges. … … 90 90 /// 91 91 /// \warning If kruskal is run on an 92 /// \ref lemon::concept::U ndirGraph "undirected graph", be sure that the92 /// \ref lemon::concept::UGraph "undirected graph", be sure that the 93 93 /// map storing the tree is also undirected 94 /// (e.g. UndirListGraph::UndirEdgeMap<bool>, otherwise the values of the94 /// (e.g. ListUGraph::UEdgeMap<bool>, otherwise the values of the 95 95 /// half of the edges will not be set. 96 96 /// 97 97 /// \todo Discuss the case of undirected graphs: In this case the algorithm 98 /// also require <tt>Edge</tt>s instead of <tt>U ndirEdge</tt>s, as some98 /// also require <tt>Edge</tt>s instead of <tt>UEdge</tt>s, as some 99 99 /// people would expect. So, one should be careful not to add both of the 100 /// <tt>Edge</tt>s belonging to a certain <tt>U ndirEdge</tt>.100 /// <tt>Edge</tt>s belonging to a certain <tt>UEdge</tt>. 101 101 /// (\ref kruskal() and \ref KruskalMapInput are kind enough to do so.) 102 102 … … 226 226 227 227 template<class _GR> 228 typename enable_if<typename _GR::U ndirTag,void>::type228 typename enable_if<typename _GR::UTag,void>::type 229 229 fillWithEdges(const _GR& g, const Map& m,dummy<0> = 0) 230 230 { 231 for(typename GR::U ndirEdgeIt e(g);e!=INVALID;++e)231 for(typename GR::UEdgeIt e(g);e!=INVALID;++e) 232 232 push_back(value_type(g.direct(e, true), m[e])); 233 233 } 234 234 235 235 template<class _GR> 236 typename disable_if<typename _GR::U ndirTag,void>::type236 typename disable_if<typename _GR::UTag,void>::type 237 237 fillWithEdges(const _GR& g, const Map& m,dummy<1> = 1) 238 238 {
Note: See TracChangeset
for help on using the changeset viewer.