Boost logo

Boost :

Subject: Re: [boost] [bgl] Transitive closure
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-08-14 07:44:34

> typedef boost::adjacency_list<boost::vecS, boost::listS,
> boost::bidirectionalS,
> boost::property<boost::vertex_name_t, int> > graph_t;

> adjacency_list<> c;
> boost::transitive_closure(g, c, vmap, tempMap);

> Can someone give me a hint on how to solve my problem?

It may be because you're using two different graph types. graph_t makes the
vertex_descriptor type a void* (because of the listS for the vertex list)
and the graph c uses size_t (because it defaults to vecS). It might be that
using two different types of graphs isn't a use case for this particular
call. Just speculation.

You might also try using the named-parameter version. That may make some of
your problems a litlte more explicit (but maybe not).

Andrew Sutton

Boost list run by bdawes at, gregod at, cpdaniel at, john at