« Return to Thread: [BGL] Access bundle graph properties

Re: [BGL] Access bundle graph properties

by Benoît Dagon :: Rate this Message:

Reply to Author | View in Thread

Hi,

I think you should use the public method get_property of the
adjacency_list to acces properly the graph property.

See http://www.boost.org/libs/graph/doc/adjacency_list.html

template <class GraphProperties, class GraphPropertyTag>
typename graph_property<adjacency_list, GraphPropertyTag>::type&
get_property(adjacency_list& g, GraphPropertyTag);

Return the property specified by GraphPropertyTag that is attached to
the graph object g. The graph_property traits class is defined in
boost/graph/adjacency_list.hpp.

Cheers,
~Benoît
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [BGL] Access bundle graph properties