pgRouting

Changeset 92

Show
Ignore:
Timestamp:
01/15/08 17:28:10 (11 months ago)
Author:
anton
Message:

edge indices fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/src/shooting_star_boost_wrapper.cpp

    r74 r92  
    4444  std::map< int, vector< std::pair<float, std::vector<int> > >, std::less<int> > adjacent_edges; 
    4545  default_color_type color; 
     46   
     47  std::size_t index; 
    4648}; 
    4749         
     
    135137  graph[e].rank = 0; 
    136138  graph[e].distance = 0; 
     139   
     140  graph[e].index = boost::num_edges(graph); 
    137141 
    138142   
     
    300304  } 
    301305 
    302   property_map<graph_t, int Edge::*>::type edge_index = get(&Edge::id, graph); 
     306  property_map<graph_t, std::size_t Edge::*>::type edge_index = get(&Edge::index, graph); 
    303307 
    304308  std::map< int, edge_descriptor, std::less<int> > predecessors;