COIN-OR::LEMON - Graph Library

Changeset 4:e099638ff236 in glemon-0.x for graph-displayer.cc


Ignore:
Timestamp:
05/27/05 12:34:20 (19 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1915
Message:

Small documentation is added to GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph-displayer.cc

    r1 r4  
    1313int main(int argc, char *argv[])
    1414{
     15
     16  //initializing
     17
    1518  property_strings=new std::string[PROPERTY_NUM];
    1619  property_strings[WIDTH]="Width";
     
    3538  CoordinatesMap cm(g);
    3639  Graph::EdgeMap<double> cap(g), map1(g), map2(g), map3(g), map4(g);
     40  Graph::NodeMap<double> nodedata (g);
    3741
    3842  //we create one object to read x coordinates
    3943  //and one to read y coordinate of nodes and write them to cm NodeMap.
    40 
    4144  XMap <CoordinatesMap> xreader (cm);
    4245  YMap <CoordinatesMap> yreader (cm);
    43   Graph::NodeMap<double> nodedata (g);
     46
     47  //reading in graph and its maps
    4448
    4549  std::ifstream is(argv[1]);
     
    5660  reader.run();
    5761
     62  //initializing MapStorage with the read data
     63
    5864  MapStorage ms(g);
    5965  ms.addNodeMap("data",&nodedata);
     
    6369  ms.addEdgeMap("map3",&map3);
    6470  ms.addEdgeMap("map4",&map4);
     71
     72  //initializing GUI
    6573
    6674  Gnome::Canvas::init();
Note: See TracChangeset for help on using the changeset viewer.