COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/macro_test.cc @ 371:b2acba449222

Last change on this file since 371:b2acba449222 was 330:7ac0d4e8a31c, checked in by marci, 21 years ago

In the resgraphwrapper interface, and in the constructor,
the order of FlowMap? and CapacityMap? is changed.

File size: 462 bytes
Line 
1// -*- c++ -*-
2#include <iostream>
3#include <fstream>
4
5#include <list_graph.h>
6#include <for_each_macros.h>
7
8using namespace hugo;
9
10int 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;
25
26
27  return 0;
28}
Note: See TracBrowser for help on using the repository browser.