$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-03-21 16:48:00
On Mar 21, 2005, at 11:49 AM, Sean Kelly wrote:
>> Hi All,
>>
>> I'm trying to figure out how to add a vertex index property to the
>> following listS, listS adjacency list so I can use write_graphviz
>>
>> typedef boost::adjacency_list<boost::listS,
>> boost::listS,
>> boost::bidirectionalS,
>>
>> boost::shared_ptr<Sysgen::Visitable> > XTreeGraph;
>>
>> thanks for any help.
You can use bundled properties along with property<...>-based
properties, for instance:
typedef boost::adjacency_list<boost::listS, boost::listS,
boost::bidirectionalS,
property<boost::vertex_index_t, std::size_t,
boost::Shared_ptr<Sysgen::Visitable> > >
XTreeGraph;
You'll need to set the vertex_index values in the graph manually.
Doug