src/work/marci/macro_test.cc
changeset 694 2d87cefb35b2
parent 640 d426dca0aaf7
child 762 511200bdb71f
equal deleted inserted replaced
2:3eed799ac30b 3:8ec7543051da
     1 // -*- c++ -*-
     1 // -*- c++ -*-
     2 #include <iostream>
     2 #include <iostream>
     3 #include <fstream>
     3 #include <fstream>
     4 
     4 
     5 #include <list_graph.h>
     5 #include <sage_graph.h>
     6 #include <hugo/for_each_macros.h>
     6 #include <hugo/for_each_macros.h>
     7 
     7 
     8 using namespace hugo;
     8 using namespace hugo;
     9 
     9 
    10 int main() 
    10 int main() 
    11 {
    11 {
    12   typedef ListGraph Graph;
    12   typedef SageGraph Graph;
    13   Graph g;
    13   Graph g;
    14   Graph::Node n1=g.addNode();
    14   Graph::Node n1=g.addNode();
    15   Graph::Node n2=g.addNode();
    15   Graph::Node n2=g.addNode();
    16   Graph::NodeIt n;
    16   Graph::NodeIt n;
    17   FOR_EACH_GLOB(n, g) {
    17   FOR_EACH_GLOB(n, g) {