From 76de55128801f7d74180960e47b9ac2452b730fa Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Fri, 27 Jul 2001 14:26:08 +0000 Subject: [PATCH] added check for directed graph [SVN r10709] --- include/boost/graph/strong_components.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/graph/strong_components.hpp b/include/boost/graph/strong_components.hpp index 94f09ffd..32187a3a 100644 --- a/include/boost/graph/strong_components.hpp +++ b/include/boost/graph/strong_components.hpp @@ -195,6 +195,8 @@ namespace boost { strong_components(const Graph& g, ComponentMap comp, const bgl_named_params& params) { + typedef typename graph_traits::directed_category DirCat; + typedef typename require_same::type req1; return detail::strong_comp_dispatch1 (g, comp, params, get_param(params, vertex_root_t())); } @@ -203,6 +205,8 @@ namespace boost { inline typename property_traits::value_type strong_components(const Graph& g, ComponentMap comp) { + typedef typename graph_traits::directed_category DirCat; + typedef typename require_same::type req1; bgl_named_params params(0); return strong_components(g, comp, params); }