COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/macro_test.cc @ 1288:6cc7b573b7b5

Last change on this file since 1288:6cc7b573b7b5 was 921:818510fa3d99, checked in by Alpar Juttner, 20 years ago

hugo -> lemon

File size: 468 bytes
RevLine 
[330]1// -*- c++ -*-
2#include <iostream>
3#include <fstream>
4
[642]5#include <sage_graph.h>
[762]6#include <for_each_macros.h>
[330]7
[921]8using namespace lemon;
[330]9
10int main()
11{
[642]12  typedef SageGraph Graph;
[330]13  Graph g;
14  Graph::Node n1=g.addNode();
15  Graph::Node n2=g.addNode();
16  Graph::NodeIt n;
[409]17  FOR_EACH_GLOB(n, g) {
[330]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}
Note: See TracBrowser for help on using the repository browser.