Changeset 23
- Timestamp:
- 08/03/07 09:51:04 (1 year ago)
- Files:
-
- trunk/shooting_star_boost_wrapper.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/shooting_star_boost_wrapper.cpp
r22 r23 52 52 53 53 default_color_type color; 54 55 std::size_t index; 54 56 55 57 adjacency_list_traits<vecS, vecS, directedS>::edge_descriptor predecessor; … … 126 128 127 129 tie(e, inserted) = add_edge(source, target, graph); 128 130 129 131 graph[e].cost = cost; 130 132 graph[e].id = id; 133 134 // put(edge_index, graph, graph[e], id); 131 135 132 136 graph[e].source = source; … … 157 161 158 162 typedef adjacency_list<vecS, vecS, directedS, Vertex, Edge> graph_t; 159 163 160 164 typedef graph_traits < graph_t >::vertex_descriptor vertex_descriptor; 161 165 typedef graph_traits < graph_t >::edge_descriptor edge_descriptor; … … 257 261 258 262 graph_traits<graph_t>::edge_iterator ei, ei_end; 263 int index; 264 265 index = 1; 266 267 for(tie(ei, ei_end) = edges(graph); ei != ei_end; ++ei, ++index) 268 graph[*ei].index = index; 259 269 260 270 for(tie(ei, ei_end) = edges(graph); ei != ei_end; ++ei) … … 296 306 property_map<graph_t, std::vector< int > Edge::*>::type history = get(&Edge::history, graph); 297 307 298 property_map<graph_t, int Edge::*>::type edge_index = get(&Edge::id, graph);308 property_map<graph_t, std::size_t Edge::*>::type edge_index = get(&Edge::index, graph); 299 309 300 310 property_map<graph_t, float8 Edge::*>::type rank = get(&Edge::rank, graph);

