2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-27 17:12:11 +00:00

added check for directed graph

[SVN r10709]
This commit is contained in:
Jeremy Siek
2001-07-27 14:26:08 +00:00
parent 637c6d4b63
commit 76de551288

View File

@@ -195,6 +195,8 @@ namespace boost {
strong_components(const Graph& g, ComponentMap comp,
const bgl_named_params<P, T, R>& params)
{
typedef typename graph_traits<Graph>::directed_category DirCat;
typedef typename require_same<DirCat, directed_tag>::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<ComponentMap>::value_type
strong_components(const Graph& g, ComponentMap comp)
{
typedef typename graph_traits<Graph>::directed_category DirCat;
typedef typename require_same<DirCat, directed_tag>::type req1;
bgl_named_params<int, int> params(0);
return strong_components(g, comp, params);
}