Changeset 140
- Timestamp:
- 03/25/08 15:25:27 (8 months ago)
- Files:
-
- trunk/core/src/shooting_star_boost_wrapper.cpp (modified) (2 diffs)
- trunk/core/src/shooting_star_search.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/shooting_star_boost_wrapper.cpp
r136 r140 74 74 75 75 template <class Graph> 76 void examine_edge(Edge e, Graph& g )77 { 78 if( g[e].id == g[m_goal].id )76 void examine_edge(Edge e, Graph& g, int e_max_id) 77 { 78 if( g[e].id == g[m_goal].id || g[e].id == g[m_goal].id + e_max_id ) 79 79 { 80 80 throw found_goal(); … … 85 85 private: 86 86 Edge m_goal; 87 int e_max_id; 87 88 }; 88 89 trunk/core/src/shooting_star_search.hpp
r112 r140 88 88 vis.discover_vertex(u, g); 89 89 vis.examine_vertex(u, g); 90 vis.examine_edge(e, g );90 vis.examine_edge(e, g, e_max_id); 91 91 vis.black_target(e, pe, g, e_max_id); 92 92 vis.gray_target(e, pe, g, e_max_id); … … 147 147 148 148 // Examine the edge 149 vis.examine_edge(e, g );149 vis.examine_edge(e, g, e_max_id); 150 150 151 151 // For all adjacent edges for the current one … … 304 304 } 305 305 template <class Edge, class Graph> 306 void examine_edge(Edge e, Graph& g )306 void examine_edge(Edge e, Graph& g, int e_max_id) 307 307 { 308 308 if (m_compare(get(m_weight, e), m_zero)) 309 309 throw negative_edge(); 310 m_vis.examine_edge(e, g );310 m_vis.examine_edge(e, g, e_max_id); 311 311 } 312 312 template <class Edge, class Graph>

