Ticket #3013: graph.patch
File graph.patch, 8.5 KB (added by , 13 years ago) |
---|
-
boost/graph/clustering_coefficient.hpp
92 92 Degree count(0); 93 93 AdjacencyIterator i, j, end; 94 94 for(tie(i, end) = adjacent_vertices(v, g); i != end; ++i) { 95 for(j = next(i); j != end; ++j) {95 for(j = boost::next(i); j != end; ++j) { 96 96 count += detail::count_edges(g, *i, *j, Directed()); 97 97 } 98 98 } -
boost/graph/detail/adjacency_list.hpp
791 791 // of loop edges. This solution is based on the observation that 792 792 // the incidence edges of a vertex with a loop are adjacent in the 793 793 // out edge list. This *may* actually hold for multisets also. 794 bool skip = ( next(i) != end && i->get_iter() ==next(i)->get_iter());794 bool skip = (boost::next(i) != end && i->get_iter() == boost::next(i)->get_iter()); 795 795 g.m_edges.erase((*i).get_iter()); 796 796 if (skip) ++i; 797 797 } -
boost/graph/eccentricity.hpp
86 86 tie(i, end) = vertices(g); 87 87 Eccentricity radius = get(ecc, *i); 88 88 Eccentricity diameter = get(ecc, *i); 89 for(i = next(i); i != end; ++i) {89 for(i = boost::next(i); i != end; ++i) { 90 90 Eccentricity cur = get(ecc, *i); 91 91 radius = min BOOST_PREVENT_MACRO_SUBSTITUTION (radius, cur); 92 92 diameter = max BOOST_PREVENT_MACRO_SUBSTITUTION (diameter, cur); -
boost/graph/is_straight_line_drawing.hpp
185 185 before = active_edges.end(); 186 186 else 187 187 before = prior(a_itr); 188 after = next(a_itr);188 after = boost::next(a_itr); 189 189 190 190 if (before != active_edges.end()) 191 191 { -
boost/graph/isomorphism.hpp
237 237 num_edges_on_k = 1; 238 238 BOOST_USING_STD_MAX(); 239 239 int next_k = max BOOST_PREVENT_MACRO_SUBSTITUTION(dfs_num_k, max BOOST_PREVENT_MACRO_SUBSTITUTION(dfs_num[i], dfs_num[j])); 240 if (match( next(iter), next_k))240 if (match(boost::next(iter), next_k)) 241 241 return true; 242 242 in_S[v] = false; 243 243 } … … 247 247 else { 248 248 if (container_contains(adjacent_vertices(f[i], G2), f[j])) { 249 249 ++num_edges_on_k; 250 if (match( next(iter), dfs_num_k))250 if (match(boost::next(iter), dfs_num_k)) 251 251 return true; 252 252 } 253 253 -
boost/graph/make_connected.hpp
62 62 if (ci_prev == ci_end) 63 63 return; 64 64 65 for(vec_of_vertices_itr_t ci = next(ci_prev);65 for(vec_of_vertices_itr_t ci = boost::next(ci_prev); 66 66 ci != ci_end; ci_prev = ci, ++ci 67 67 ) 68 68 { -
boost/graph/make_maximal_planar.hpp
130 130 // The iterator manipulations on the next two lines are safe because 131 131 // vertices_on_face.size() > 3 (from the first test in this function) 132 132 fi_end = prior(vertices_on_face.end()); 133 for(face_iterator fi = next(next(vertices_on_face.begin()));133 for(face_iterator fi = boost::next(boost::next(vertices_on_face.begin())); 134 134 fi != fi_end; ++fi 135 135 ) 136 136 { … … 145 145 { 146 146 add_edge_range( 147 147 vertices_on_face[0], 148 next(next(vertices_on_face.begin())),148 boost::next(boost::next(vertices_on_face.begin())), 149 149 prior(vertices_on_face.end()) 150 150 ); 151 151 } … … 153 153 { 154 154 add_edge_range( 155 155 vertices_on_face[1], 156 next(marked_neighbor),156 boost::next(marked_neighbor), 157 157 vertices_on_face.end() 158 158 ); 159 159 160 160 add_edge_range( 161 * next(marked_neighbor),162 next(next(vertices_on_face.begin())),161 *boost::next(marked_neighbor), 162 boost::next(boost::next(vertices_on_face.begin())), 163 163 marked_neighbor 164 164 ); 165 165 } -
boost/graph/planar_canonical_ordering.hpp
101 101 { 102 102 103 103 edge_t e(*ei); // e = (u,v) 104 next_edge_itr = next(ei) == ei_end ? ei_start :next(ei);104 next_edge_itr = boost::next(ei) == ei_end ? ei_start : boost::next(ei); 105 105 vertex_t v = source(e,g) == u ? target(e,g) : source(e,g); 106 106 107 107 vertex_t prior_vertex = source(*prior_edge_itr, g) == u ? … … 127 127 // past any loops or parallel edges 128 128 while (next_vertex == v || next_vertex == u) 129 129 { 130 next_edge_itr = next(next_edge_itr) == ei_end ?131 ei_start : next(next_edge_itr);130 next_edge_itr = boost::next(next_edge_itr) == ei_end ? 131 ei_start : boost::next(next_edge_itr); 132 132 next_vertex = source(*next_edge_itr, g) == u ? 133 133 target(*next_edge_itr, g) : source(*next_edge_itr, g); 134 134 } -
boost/graph/planar_detail/boyer_myrvold_impl.hpp
1025 1025 garbage.splice(garbage.end(), 1026 1026 *separated_dfs_child_list[dfs_parent[v]], 1027 1027 to_delete, 1028 next(to_delete)1028 boost::next(to_delete) 1029 1029 ); 1030 1030 } 1031 1031 … … 1589 1589 if (w == graph_traits<Graph>::null_vertex() && 1590 1590 externally_active(current_vertex,v) && 1591 1591 outer_face_edge[e] && 1592 outer_face_edge[* next(old_face_itr)] &&1592 outer_face_edge[*boost::next(old_face_itr)] && 1593 1593 !seen_x_or_y 1594 1594 ) 1595 1595 { -
boost/graph/planar_face_traversal.hpp
107 107 { 108 108 edge_t e(*pi); 109 109 std::map<vertex_t, edge_t> m = get(next_edge, e); 110 m[v] = next(pi) == pi_end ? *pi_begin : *next(pi);110 m[v] = boost::next(pi) == pi_end ? *pi_begin : *boost::next(pi); 111 111 put(next_edge, e, m); 112 112 } 113 113 } -
libs/graph/test/tiernan_all_cycles.cpp
35 35 // that the paths are valid. 36 36 typename Path::const_iterator i, j, last = prior(p.end()); 37 37 for(i = p.begin(); i != last; ++i) { 38 j = next(i);38 j = boost::next(i); 39 39 BOOST_ASSERT(edge(*i, *j, g).second); 40 40 } 41 41 BOOST_ASSERT(edge(p.back(), p.front(), g).second);