COIN-OR::LEMON - Graph Library

Changeset 2281:55b15666560f in lemon-0.x for demo/kruskal_demo.cc


Ignore:
Timestamp:
10/31/06 10:32:44 (13 years ago)
Author:
mqrelly
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3045
Message:

tutorial update
algorithms, and graph visualisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/kruskal_demo.cc

    r1956 r2281  
    107107  int k=0;
    108108  std::cout << "The edges of the tree:" ;
    109   for(EdgeIt i(g); i!=INVALID; ++i){
    110 
     109  for(EdgeIt i(g); i!=INVALID; ++i)
    111110    if (tree_map[i]) {
    112111      std::cout << g.id(i) <<";";
    113112      ++k;
    114113    }
    115   }
     114
    116115  std::cout << std::endl;
    117116  std::cout << "The size of the tree is: "<< k << std::endl;
Note: See TracChangeset for help on using the changeset viewer.