demo/graph_orientation.cc
changeset 2282 9d7b12f83daa
parent 2172 4b25e7003868
child 2310 96cca167430a
equal deleted inserted replaced
7:50000cb0f93a 8:a11c5625884d
    17  */
    17  */
    18 
    18 
    19 #include <lemon/list_graph.h>
    19 #include <lemon/list_graph.h>
    20 #include <lemon/graph_reader.h>
    20 #include <lemon/graph_reader.h>
    21 #include <lemon/iterable_maps.h>
    21 #include <lemon/iterable_maps.h>
    22 #include <lemon/xy.h>
    22 #include <lemon/dim2.h>
    23 #include <lemon/graph_to_eps.h>
    23 #include <lemon/graph_to_eps.h>
    24 
    24 
    25 
    25 
    26 using namespace lemon;
    26 using namespace lemon;
    27  
    27  
    43   
    43   
    44   ListGraph g;
    44   ListGraph g;
    45 
    45 
    46   ListGraph::NodeMap<int> f(g); //in-deg requirement;
    46   ListGraph::NodeMap<int> f(g); //in-deg requirement;
    47   ListGraph::NodeMap<int> label(g);
    47   ListGraph::NodeMap<int> label(g);
    48   ListGraph::NodeMap<xy<double> > coords(g);
    48   ListGraph::NodeMap<dim2::Point<double> > coords(g);
    49   
    49   
    50   try {
    50   try {
    51     GraphReader<ListGraph> reader(argv[1],g);
    51     GraphReader<ListGraph> reader(argv[1],g);
    52     reader.readNodeMap("f",f);
    52     reader.readNodeMap("f",f);
    53     reader.readNodeMap("label",label);
    53     reader.readNodeMap("label",label);