Skip to content

Commit

Permalink
Replace std::deque with std::vector for Lengauer-Tarjan
Browse files Browse the repository at this point in the history
  • Loading branch information
samolisov committed Dec 19, 2024
1 parent bdeaf54 commit ca7741a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/boost/graph/dominator_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#define BOOST_GRAPH_DOMINATOR_HPP

#include <boost/config.hpp>
#include <deque>
#include <set>
#include <vector>
#include <boost/graph/depth_first_search.hpp>
#include <boost/concept/assert.hpp>

Expand Down Expand Up @@ -155,7 +155,7 @@ namespace detail
//
// idom(n) = semi(n) if semi(y)=semi(n) or
// idom(y) if semi(y) != semi(n)
typename std::deque< Vertex >::iterator buckItr;
typename std::vector< Vertex >::iterator buckItr;
for (buckItr = get(bucketMap_, p).begin();
buckItr != get(bucketMap_, p).end(); ++buckItr)
{
Expand Down Expand Up @@ -195,10 +195,10 @@ namespace detail

std::vector< Vertex > semi_, ancestor_, samedom_, best_;
PredMap semiMap_, ancestorMap_, bestMap_;
std::vector< std::deque< Vertex > > buckets_;
std::vector< std::vector< Vertex > > buckets_;

iterator_property_map<
typename std::vector< std::deque< Vertex > >::iterator, IndexMap >
typename std::vector< std::vector< Vertex > >::iterator, IndexMap >
bucketMap_;

const Vertex& entry_;
Expand Down

0 comments on commit ca7741a

Please sign in to comment.