Commit 38a35012 authored by Alex Henrie's avatar Alex Henrie

Remove unused includes

parent 4e66070a
Pipeline #752 passed with stage
in 109 minutes and 44 seconds
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <vector> #include <vector>
#include <boost/mpl/bool.hpp> #include <boost/mpl/bool.hpp>
#include <iostream> // #include <iostream>
using namespace std; using namespace std;
template <class Value, class Compare = std::less<Value> > template <class Value, class Compare = std::less<Value> >
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#ifndef GRAPH_GENERATION_HH #ifndef GRAPH_GENERATION_HH
#define GRAPH_GENERATION_HH #define GRAPH_GENERATION_HH
#include <tuple>
#include <boost/functional/hash.hpp>
#include <map> #include <map>
#include <set> #include <set>
#include <iostream> #include <iostream>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#define GRAPH_KNN_HH #define GRAPH_KNN_HH
#include <tuple> #include <tuple>
#include <iostream>
#include <random> #include <random>
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#ifndef GRAPH_LATTICE_HH #ifndef GRAPH_LATTICE_HH
#define GRAPH_LATTICE_HH #define GRAPH_LATTICE_HH
#include <iostream>
#include "graph_util.hh" #include "graph_util.hh"
namespace graph_tool namespace graph_tool
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#define GRAPH_MAXENT_SBM_HH #define GRAPH_MAXENT_SBM_HH
#include <tuple> #include <tuple>
#include <iostream>
#include "graph.hh" #include "graph.hh"
#include "graph_filtering.hh" #include "graph_filtering.hh"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <tuple> #include <tuple>
#include <iostream> #include <iostream>
#include <boost/functional/hash.hpp>
#include "graph.hh" #include "graph.hh"
#include "graph_filtering.hh" #include "graph_filtering.hh"
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
#ifndef GRAPH_SBM_HH #ifndef GRAPH_SBM_HH
#define GRAPH_SBM_HH #define GRAPH_SBM_HH
#include <tuple>
#include <iostream>
#include <boost/functional/hash.hpp>
#include "graph.hh" #include "graph.hh"
#include "graph_filtering.hh" #include "graph_filtering.hh"
#include "graph_util.hh" #include "graph_util.hh"
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#ifndef GRAPH_TRIANGULATION_HH #ifndef GRAPH_TRIANGULATION_HH
#define GRAPH_TRIANGULATION_HH #define GRAPH_TRIANGULATION_HH
#include <tuple>
#include "graph_util.hh" #include "graph_util.hh"
#include "hash_map_wrap.hh" #include "hash_map_wrap.hh"
......
...@@ -22,29 +22,18 @@ ...@@ -22,29 +22,18 @@
#include <boost/config/warning_disable.hpp> #include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_fusion.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/variant/recursive_variant.hpp> #include <boost/variant/recursive_variant.hpp>
#include <boost/variant/get.hpp> #include <boost/variant/get.hpp>
#include <boost/spirit/include/support_istream_iterator.hpp> #include <boost/spirit/include/support_istream_iterator.hpp>
#include <boost/foreach.hpp>
#include <boost/regex/pending/unicode_iterator.hpp>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <boost/property_map/dynamic_property_map.hpp> #include <boost/property_map/dynamic_property_map.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <boost/graph/properties.hpp>
#include <boost/python.hpp> #include <boost/python.hpp>
#include <iostream> #include <iostream>
#include <fstream>
#include <string> #include <string>
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
......
...@@ -18,12 +18,9 @@ ...@@ -18,12 +18,9 @@
#ifndef GRAPH_ADAPTOR_HH #ifndef GRAPH_ADAPTOR_HH
#define GRAPH_ADAPTOR_HH #define GRAPH_ADAPTOR_HH
#include <list>
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/iterator_adaptors.hpp> #include <boost/iterator_adaptors.hpp>
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <boost/graph/properties.hpp>
#include "transform_iterator.hh" #include "transform_iterator.hh"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <deque> #include <deque>
#include <utility> #include <utility>
#include <numeric> #include <numeric>
#include <tuple>
#include <boost/iterator.hpp> #include <boost/iterator.hpp>
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <boost/range/irange.hpp> #include <boost/range/irange.hpp>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <boost/graph/properties.hpp> #include <boost/graph/properties.hpp>
#include <boost/graph/adjacency_iterator.hpp> #include <boost/graph/adjacency_iterator.hpp>
#include <boost/graph/detail/set_adaptor.hpp>
#include <boost/iterator/filter_iterator.hpp> #include <boost/iterator/filter_iterator.hpp>
#include <boost/graph/filtered_graph.hpp> // for predicate classes #include <boost/graph/filtered_graph.hpp> // for predicate classes
......
...@@ -18,11 +18,8 @@ ...@@ -18,11 +18,8 @@
#ifndef GRAPH_PROPERTIES_HH #ifndef GRAPH_PROPERTIES_HH
#define GRAPH_PROPERTIES_HH #define GRAPH_PROPERTIES_HH
#include <typeinfo>
#include <string> #include <string>
#include <vector> #include <vector>
#include <memory>
#include <random>
#include <unordered_map> #include <unordered_map>
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
#include <boost/python/object.hpp> #include <boost/python/object.hpp>
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
#include "graph_filtering.hh" #include "graph_filtering.hh"
#include "graph_properties.hh" #include "graph_properties.hh"
#include <boost/mpl/contains.hpp>
#include <boost/python/extract.hpp>
#include "graph_properties_copy.hh" #include "graph_properties_copy.hh"
using namespace std; using namespace std;
......
...@@ -33,8 +33,6 @@ namespace std ...@@ -33,8 +33,6 @@ namespace std
} }
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <boost/mpl/logical.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/version.hpp> #include <boost/version.hpp>
#if (BOOST_VERSION >= 104000) #if (BOOST_VERSION >= 104000)
...@@ -42,7 +40,6 @@ namespace std ...@@ -42,7 +40,6 @@ namespace std
#else #else
# include <boost/dynamic_property_map.hpp> # include <boost/dynamic_property_map.hpp>
#endif #endif
#include <type_traits>
#include "graph.hh" #include "graph.hh"
#include "graph_filtering.hh" #include "graph_filtering.hh"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <boost/python.hpp> #include <boost/python.hpp>
#include <boost/python/stl_iterator.hpp> #include <boost/python/stl_iterator.hpp>
#include <set>
using namespace std; using namespace std;
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
# define GRAPH_REVERSE # define GRAPH_REVERSE
#include <boost/graph/adjacency_iterator.hpp> #include <boost/graph/adjacency_iterator.hpp>
#include <boost/graph/properties.hpp>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/mpl/if.hpp>
#include <utility> #include <utility>
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300) #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
// Andrew Lumsdaine // Andrew Lumsdaine
// Tiago de Paula Peixoto // Tiago de Paula Peixoto
#include <boost/python.hpp>
#include <expat.h> #include <expat.h>
#include <boost/graph/graphml.hpp> #include <boost/graph/graphml.hpp>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
#include <boost/mpl/if.hpp> #include <boost/mpl/if.hpp>
#include <boost/mpl/int.hpp> #include <boost/mpl/int.hpp>
#include <boost/python/object.hpp>
// //
// This is a generic multidimensional histogram type // This is a generic multidimensional histogram type
// //
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <queue>
#include "graph_tool.hh" #include "graph_tool.hh"
#include "../support/graph_state.hh" #include "../support/graph_state.hh"
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include "hash_map_wrap.hh" #include "hash_map_wrap.hh"
#include <boost/range/counting_range.hpp>
namespace graph_tool namespace graph_tool
{ {
......
...@@ -18,10 +18,7 @@ ...@@ -18,10 +18,7 @@
#ifndef GRAPH_LATENT_MULTIGRAPH_HH #ifndef GRAPH_LATENT_MULTIGRAPH_HH
#define GRAPH_LATENT_MULTIGRAPH_HH #define GRAPH_LATENT_MULTIGRAPH_HH
#include <tuple>
#include <iostream> #include <iostream>
#include <fstream>
#include <iomanip>
#include "graph_tool.hh" #include "graph_tool.hh"
#include "hash_map_wrap.hh" #include "hash_map_wrap.hh"
......
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
#ifndef GRAPH_MODULARITY_HH #ifndef GRAPH_MODULARITY_HH
#define GRAPH_MODULARITY_HH #define GRAPH_MODULARITY_HH
#include <tuple>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "graph_tool.hh" #include "graph_tool.hh"
#include "hash_map_wrap.hh" #include "hash_map_wrap.hh"
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "config.h" #include "config.h"
#include <vector>
namespace graph_tool namespace graph_tool
{ {
using namespace boost; using namespace boost;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include <iostream>
#include <queue> #include <queue>
#include <tuple> #include <tuple>
......
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
#include "config.h" #include "config.h"
#include <iostream>
#include <queue>
#include <tuple> #include <tuple>
#include "hash_map_wrap.hh" #include "hash_map_wrap.hh"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "config.h" #include "config.h"
#include <iostream> #include <iostream>
#include <queue>
#include <tuple> #include <tuple>
......
...@@ -22,18 +22,13 @@ ...@@ -22,18 +22,13 @@
#include <boost/preprocessor/comparison/equal.hpp> #include <boost/preprocessor/comparison/equal.hpp>
#include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/seq/size.hpp> #include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp> #include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/stringize.hpp> #include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/tuple/elem.hpp> #include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/control/if.hpp>
#include <boost/preprocessor/arithmetic/dec.hpp> #include <boost/preprocessor/arithmetic/dec.hpp>
#include <boost/preprocessor/seq/transform.hpp> #include <boost/preprocessor/seq/transform.hpp>
#include <boost/preprocessor/seq/filter.hpp> #include <boost/preprocessor/seq/filter.hpp>
#include <boost/preprocessor/comparison/equal.hpp> #include <boost/preprocessor/comparison/equal.hpp>
#include <boost/preprocessor/comparison/not_equal.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
#include <boost/preprocessor/facilities/empty.hpp>
#include <boost/preprocessor/seq/first_n.hpp> #include <boost/preprocessor/seq/first_n.hpp>
#include "graph.hh" #include "graph.hh"
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include "config.h" #include "config.h"
#include <cmath>
#include <iostream>
#include <boost/multi_array.hpp> #include <boost/multi_array.hpp>
#include "cache.hh" #include "cache.hh"
......
...@@ -21,12 +21,9 @@ ...@@ -21,12 +21,9 @@
#include "config.h" #include "config.h"
#include <cmath> #include <cmath>
#include <iostream>
#include "cache.hh" #include "cache.hh"
#include <boost/range/counting_range.hpp>
namespace graph_tool namespace graph_tool
{ {
using namespace boost; using namespace boost;
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#define GRAPH_SBM_SAMPLE_EDGE_HH #define GRAPH_SBM_SAMPLE_EDGE_HH
#include <tuple> #include <tuple>
#include <iostream>
#include "graph.hh" #include "graph.hh"
#include "graph_filtering.hh" #include "graph_filtering.hh"
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "config.h" #include "config.h"
#include <vector>
#include "../support/graph_state.hh" #include "../support/graph_state.hh"
#include "../blockmodel/graph_blockmodel_util.hh" #include "../blockmodel/graph_blockmodel_util.hh"
#include "graph_blockmodel_sample_edge.hh" #include "graph_blockmodel_sample_edge.hh"
......
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
#ifndef GRAPH_ARF_HH #ifndef GRAPH_ARF_HH
#define GRAPH_ARF_HH #define GRAPH_ARF_HH
#include <limits>
#include <iostream>
namespace graph_tool namespace graph_tool
{ {
using namespace std; using namespace std;
......
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
#ifndef NESTED_FOR_LOOP_HH #ifndef NESTED_FOR_LOOP_HH
#define NESTED_FOR_LOOP_HH #define NESTED_FOR_LOOP_HH
#include <boost/mpl/for_each.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/empty.hpp>
#include <boost/any.hpp>
namespace boost namespace boost
{ {
namespace mpl namespace mpl
......
...@@ -34,10 +34,8 @@ ...@@ -34,10 +34,8 @@
#include <boost/multi_array.hpp> #include <boost/multi_array.hpp>
#include <boost/mpl/int.hpp> #include <boost/mpl/int.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/map.hpp> #include <boost/mpl/map.hpp>
#include <boost/mpl/pair.hpp> #include <boost/mpl/pair.hpp>
#include <boost/mpl/for_each.hpp>
#include "demangle.hh" #include "demangle.hh"
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#include "random.hh" #include "random.hh"
#include "parallel_rng.hh" #include "parallel_rng.hh"
#include <random>
rng_t get_rng(size_t seed) rng_t get_rng(size_t seed)
{ {
parallel_rng<rng_t>::clear(); parallel_rng<rng_t>::clear();
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#ifndef RANDOM_HH #ifndef RANDOM_HH
#define RANDOM_HH #define RANDOM_HH