From ca7741a8d86fc7e03c3db0baaa72beef736ce6ff Mon Sep 17 00:00:00 2001 From: Pavel Samolysov Date: Thu, 19 Dec 2024 13:39:44 +0300 Subject: [PATCH] Replace std::deque with std::vector for Lengauer-Tarjan Issue: #383 --- include/boost/graph/dominator_tree.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/graph/dominator_tree.hpp b/include/boost/graph/dominator_tree.hpp index df9783b0b..8a9e7afde 100644 --- a/include/boost/graph/dominator_tree.hpp +++ b/include/boost/graph/dominator_tree.hpp @@ -10,8 +10,8 @@ #define BOOST_GRAPH_DOMINATOR_HPP #include -#include #include +#include #include #include @@ -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) { @@ -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_;