BGL: adding vertex index property to listS listS adjacency list with with bundled attributes

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.
- Sean
Sean Kelly Ph.D, Sr. Software Engineer -- Xilinx Inc.

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
participants (2)
-
Doug Gregor
-
Sean Kelly