COIN-OR::LEMON - Graph Library

Changeset 1731:616bc933c2bc in lemon-0.x for gui/graph-displayer.cc


Ignore:
Timestamp:
10/20/05 17:50:23 (19 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2258
Message:

Mapselector widget reached its first release, but there are still work to do on it, I know...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph-displayer.cc

    r1650 r1731  
    1111std::vector <std::string> node_property_strings;
    1212std::vector <double> node_property_defaults;
    13 
     13int longest_property_string_length;
    1414
    1515int main(int argc, char *argv[])
     
    3838  node_property_defaults[N_TEXT]=0;
    3939
     40  longest_property_string_length=0;
     41  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
     42    {
     43      int j=edge_property_strings[i].size();
     44      if(j>longest_property_string_length)
     45        {
     46          longest_property_string_length=j;
     47        }
     48    }
     49  for(int i=0;i<NODE_PROPERTY_NUM;i++)
     50    {
     51      int j=node_property_strings[i].size();
     52      if(j>longest_property_string_length)
     53        {
     54          longest_property_string_length=j;
     55        }
     56    }
     57
     58
    4059  //initializing GUI
    4160
Note: See TracChangeset for help on using the changeset viewer.