pgRouting

Changeset 124

Show
Ignore:
Timestamp:
03/07/08 11:33:56 (9 months ago)
Author:
anton
Message:

Edge index changed

Files:

Legend:

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

    r118 r124  
    116116template <class G, class E> 
    117117static void 
    118 graph_add_edge(G &graph, int id, int source, int target,  
     118graph_add_edge(G &graph, int index, 
     119               int id, int source, int target,  
    119120               float8 cost, float8 s_x, float8 s_y, float8 t_x, float8 t_y,  
    120121               std::map< int, vector< std::pair<float, vector<int> > >, std::less<int> > adjacent_edges) 
     
    140141  graph[e].distance = 0; 
    141142   
    142   graph[e].index = boost::num_edges(graph)
     143  graph[e].index = index
    143144 
    144145   
     
    223224    if((j < count-1 && edges_array[j].id != edges_array[j+1].id)||(j==count-1)) 
    224225    { 
    225       graph_add_edge<graph_t, edge_descriptor>(graph,  
     226      graph_add_edge<graph_t, edge_descriptor>(graph, j, 
    226227                                               edges_array[j].id, edges_array[j].source,  
    227228                                               edges_array[j].target, edges_array[j].cost,  
     
    251252 
    252253 
    253         graph_add_edge<graph_t, edge_descriptor>(graph, 
     254        graph_add_edge<graph_t, edge_descriptor>(graph, j, 
    254255                                               edges_array[j].id+e_max_id, edges_array[j].target,  
    255256                                               edges_array[j].source, cost,