author | deba |
Fri, 16 Apr 2004 13:42:03 +0000 | |
changeset 340 | a2ce3c4780b7 |
child 409 | 7ab7f083760a |
permissions | -rw-r--r-- |
1 // -*- c++ -*-
2 #include <iostream>
3 #include <fstream>
5 #include <list_graph.h>
6 #include <for_each_macros.h>
8 using namespace hugo;
10 int main()
11 {
12 typedef ListGraph Graph;
13 Graph g;
14 Graph::Node n1=g.addNode();
15 Graph::Node n2=g.addNode();
16 Graph::NodeIt n;
17 FOR_EACH(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;
27 return 0;
28 }