marci@330: // -*- c++ -*- marci@330: #include marci@330: #include marci@330: marci@330: #include marci@330: #include marci@330: marci@330: using namespace hugo; marci@330: marci@330: int main() marci@330: { marci@330: typedef ListGraph Graph; marci@330: Graph g; marci@330: Graph::Node n1=g.addNode(); marci@330: Graph::Node n2=g.addNode(); marci@330: Graph::NodeIt n; marci@330: FOR_EACH(n, g) { marci@330: std::cout << g.id(n) << " "; marci@330: } marci@330: std::cout << std::endl; marci@330: FOR_EACH_LOC(Graph::NodeIt, m, g) { marci@330: std::cout << g.id(m) << " "; marci@330: } marci@330: std::cout << std::endl; marci@330: marci@330: marci@330: return 0; marci@330: }