From c5ba516e61ffad976c86a4e8ceb64cac37579029 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Sat, 27 Jan 2001 21:20:49 +0000 Subject: [PATCH] new file [SVN r8792] --- include/boost/graph/graph_selectors.hpp | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/boost/graph/graph_selectors.hpp diff --git a/include/boost/graph/graph_selectors.hpp b/include/boost/graph/graph_selectors.hpp new file mode 100644 index 00000000..8a3cb065 --- /dev/null +++ b/include/boost/graph/graph_selectors.hpp @@ -0,0 +1,27 @@ +#ifndef BOOST_GRAPH_SELECTORS_HPP +#define BOOST_GRAPH_SELECTORS_HPP + +namespace boost { + + //=========================================================================== + // Selectors for the Directed template parameter of adjacency_list + // and adjacency_matrix. + + struct directedS { enum { is_directed = true, is_bidir = false }; + typedef true_type is_directed_t; + typedef false_type is_bidir_t; + }; + struct undirectedS { + enum { is_directed = false, is_bidir = false }; + typedef false_type is_directed_t; + typedef false_type is_bidir_t; + }; + struct bidirectionalS { + enum { is_directed = true, is_bidir = true }; + typedef true_type is_directed_t; + typedef true_type is_bidir_t; + }; + +} // namespace boost + +#endif // BOOST_GRAPH_SELECTORS_HPP