COIN-OR::LEMON - Graph Library

Changeset 81:5ad61c33487c in glemon-0.x for graph-displayer.cc


Ignore:
Timestamp:
10/20/05 17:50:23 (14 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@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
  • graph-displayer.cc

    r68 r81  
    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.