Ticket #3013: graph.patch

File graph.patch, 8.5 KB (added by Richard Webb <richard.webb@…>, 13 years ago)
  • boost/graph/clustering_coefficient.hpp

     
    9292    Degree count(0);
    9393    AdjacencyIterator i, j, end;
    9494    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) {
    9696            count += detail::count_edges(g, *i, *j, Directed());
    9797        }
    9898    }
  • boost/graph/detail/adjacency_list.hpp

     
    791791            // of loop edges. This solution is based on the observation that
    792792            // the incidence edges of a vertex with a loop are adjacent in the
    793793            // 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());
    795795            g.m_edges.erase((*i).get_iter());
    796796            if (skip) ++i;
    797797          }
  • boost/graph/eccentricity.hpp

     
    8686    tie(i, end) = vertices(g);
    8787    Eccentricity radius = get(ecc, *i);
    8888    Eccentricity diameter = get(ecc, *i);
    89     for(i = next(i); i != end; ++i) {
     89    for(i = boost::next(i); i != end; ++i) {
    9090        Eccentricity cur = get(ecc, *i);
    9191        radius = min BOOST_PREVENT_MACRO_SUBSTITUTION (radius, cur);
    9292        diameter = max BOOST_PREVENT_MACRO_SUBSTITUTION (diameter, cur);
  • boost/graph/is_straight_line_drawing.hpp

     
    185185              before = active_edges.end();
    186186            else
    187187              before = prior(a_itr);
    188             after = next(a_itr);
     188            after = boost::next(a_itr);
    189189
    190190            if (before != active_edges.end())
    191191              {
  • boost/graph/isomorphism.hpp

     
    237237                num_edges_on_k = 1;
    238238                BOOST_USING_STD_MAX();
    239239                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))
    241241                  return true;
    242242                in_S[v] = false;
    243243              }
     
    247247          else {
    248248            if (container_contains(adjacent_vertices(f[i], G2), f[j])) {
    249249              ++num_edges_on_k;
    250               if (match(next(iter), dfs_num_k))
     250              if (match(boost::next(iter), dfs_num_k))
    251251                return true;
    252252            }
    253253               
  • boost/graph/make_connected.hpp

     
    6262    if (ci_prev == ci_end)
    6363      return;
    6464
    65     for(vec_of_vertices_itr_t ci = next(ci_prev);
     65    for(vec_of_vertices_itr_t ci = boost::next(ci_prev);
    6666        ci != ci_end;  ci_prev = ci, ++ci
    6767        )
    6868      {
  • boost/graph/make_maximal_planar.hpp

     
    130130      // The iterator manipulations on the next two lines are safe because
    131131      // vertices_on_face.size() > 3 (from the first test in this function)
    132132      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()));
    134134          fi != fi_end; ++fi
    135135          )
    136136        {
     
    145145        {
    146146          add_edge_range(
    147147                         vertices_on_face[0],
    148                          next(next(vertices_on_face.begin())),
     148                         boost::next(boost::next(vertices_on_face.begin())),
    149149                         prior(vertices_on_face.end())
    150150                         );
    151151        }
     
    153153        {
    154154          add_edge_range(
    155155                         vertices_on_face[1],
    156                          next(marked_neighbor),
     156                         boost::next(marked_neighbor),
    157157                         vertices_on_face.end()
    158158                         );
    159159
    160160          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())),
    163163                         marked_neighbor
    164164                         );
    165165        }
  • boost/graph/planar_canonical_ordering.hpp

     
    101101          {
    102102           
    103103            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);
    105105            vertex_t v = source(e,g) == u ? target(e,g) : source(e,g);
    106106
    107107            vertex_t prior_vertex = source(*prior_edge_itr, g) == u ?
     
    127127            // past any loops or parallel edges
    128128            while (next_vertex == v || next_vertex == u)
    129129              {
    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);
    132132                next_vertex = source(*next_edge_itr, g) == u ?
    133133                  target(*next_edge_itr, g) : source(*next_edge_itr, g);
    134134              }
  • boost/graph/planar_detail/boyer_myrvold_impl.hpp

     
    10251025      garbage.splice(garbage.end(),
    10261026                     *separated_dfs_child_list[dfs_parent[v]],
    10271027                     to_delete,
    1028                      next(to_delete)
     1028                     boost::next(to_delete)
    10291029                     );
    10301030    }
    10311031
     
    15891589                  if (w == graph_traits<Graph>::null_vertex() &&
    15901590                      externally_active(current_vertex,v) &&
    15911591                      outer_face_edge[e] &&
    1592                       outer_face_edge[*next(old_face_itr)] &&
     1592                      outer_face_edge[*boost::next(old_face_itr)] &&
    15931593                      !seen_x_or_y
    15941594                      )
    15951595                    {
  • boost/graph/planar_face_traversal.hpp

     
    107107          {
    108108            edge_t e(*pi);
    109109            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);
    111111            put(next_edge, e, m);
    112112          }
    113113      }
  • libs/graph/test/tiernan_all_cycles.cpp

     
    3535        // that the paths are valid.
    3636        typename Path::const_iterator i, j, last = prior(p.end());
    3737        for(i = p.begin(); i != last; ++i) {
    38             j = next(i);
     38            j = boost::next(i);
    3939            BOOST_ASSERT(edge(*i, *j, g).second);
    4040        }
    4141        BOOST_ASSERT(edge(p.back(), p.front(), g).second);