deba@378: #include deba@595: #include deba@698: #include "list_graph.h" deba@378: deba@378: using namespace std; deba@378: using namespace hugo; deba@378: deba@378: deba@378: int main() { deba@627: ListGraph g; deba@627: for (int i = 0; i < 10; ++i) { deba@627: ListGraph::Node node = g.addNode(); deba@627: } deba@674: ListGraph::NodeMap map(g); deba@627: for (int i = 0; i < 10; ++i) { deba@627: ListGraph::Node node = g.addNode(); deba@627: map[node] = rand()%100; deba@627: } deba@627: for (ListGraph::NodeIt it(g); g.valid(it); g.next(it)) { deba@627: cout << map[it] << endl; deba@627: } deba@627: return 0; deba@378: } deba@378: