src/work/marci/macro_test.cc
author alpar
Fri, 23 Jul 2004 17:13:23 +0000
changeset 737 2d867176d10e
parent 640 d426dca0aaf7
child 762 511200bdb71f
permissions -rw-r--r--
Several changes in Kruskal alg.
- Input object interface was changed to an STL compatible one.
- template parameters of class KruskalPairVec has been simplified.
- (the most of) the names meet the naming conventions.
- a lot of (but still not enough) documentation has been added.
- class KruskalMapVec has been commented out.
     1 // -*- c++ -*-
     2 #include <iostream>
     3 #include <fstream>
     4 
     5 #include <sage_graph.h>
     6 #include <hugo/for_each_macros.h>
     7 
     8 using namespace hugo;
     9 
    10 int main() 
    11 {
    12   typedef SageGraph Graph;
    13   Graph g;
    14   Graph::Node n1=g.addNode();
    15   Graph::Node n2=g.addNode();
    16   Graph::NodeIt n;
    17   FOR_EACH_GLOB(n, g) {
    18     std::cout << g.id(n) << " ";
    19   }
    20   std::cout << std::endl;
    21   FOR_EACH_LOC(Graph::NodeIt, m, g) {
    22     std::cout << g.id(m) << " ";
    23   }
    24   std::cout << std::endl;
    25 
    26 
    27   return 0;
    28 }