From c23f3afebe1da3f9e1e1c4016faf2fdda69ae3a9 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Mon, 7 May 2001 04:19:07 +0000 Subject: [PATCH] added root_vertex() [SVN r10041] --- include/boost/graph/named_function_params.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/boost/graph/named_function_params.hpp b/include/boost/graph/named_function_params.hpp index 58a2bb97..4bb6097b 100644 --- a/include/boost/graph/named_function_params.hpp +++ b/include/boost/graph/named_function_params.hpp @@ -41,6 +41,7 @@ namespace boost { struct vertex_invariant_t { enum { num =detail::vertex_invariant_num}; }; struct vertex_root_t { enum { num =detail::vertex_root_num}; }; struct orig_to_copy_t { enum { num = detail::orig_to_copy_num }; }; + struct root_vertex_t { enum { num = detail::root_vertex_num }; }; namespace detail { template @@ -106,6 +107,13 @@ namespace boost { return Params(pmap, *this); } + template + bgl_named_params + root_vertex(const Vertex& r) const { + typedef bgl_named_params Params; + return Params(r, *this); + } + template bgl_named_params color_map(const ColorMap& pmap) const { @@ -289,6 +297,13 @@ namespace boost { return Params(pmap); } + template + bgl_named_params + root_vertex(const Vertex& r) { + typedef bgl_named_params Params; + return Params(r); + } + template bgl_named_params color_map(ColorMap pmap) {