1 //=======================================================================
2 // Copyright 2002 Indiana University.
3 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //=======================================================================
10 #ifndef BOOST_GRAPH_SELECTORS_HPP
11 #define BOOST_GRAPH_SELECTORS_HPP
15 //===========================================================================
16 // Selectors for the Directed template parameter of adjacency_list
17 // and adjacency_matrix.
19 struct directedS { enum { is_directed = true, is_bidir = false };
20 typedef true_type is_directed_t;
21 typedef false_type is_bidir_t;
24 enum { is_directed = false, is_bidir = false };
25 typedef false_type is_directed_t;
26 typedef false_type is_bidir_t;
28 struct bidirectionalS {
29 enum { is_directed = true, is_bidir = true };
30 typedef true_type is_directed_t;
31 typedef true_type is_bidir_t;
36 #endif // BOOST_GRAPH_SELECTORS_HPP