Re: [Boost-users] [graph] breadth_first_search with a structure
Hello Stephan, Am 12.09.2006 um 12:42 Uhr haben Sie geschrieben:
typedef adjacency_list < vecS, vecS, undirectedS, tVertex> tGraph;
after that you get a property map from the graph: typedef property_map
::type tDistanceMap;
I think "graph_t" should be "tGraph", shouldn't ist?
When compiling your example, the VC++ compiler puts a lot of Errors:
:\daten\Programme\boost/pending/property.hpp(40) : error C2039: 'kind' :
is not a member of '`global namespace''
H:\daten\Programme\boost/graph/properties.hpp(198) : see
reference to class template instantiation 'boost::property_kind
Hi Daniel,
2006/9/12, boost@daniel-gohlke.de
Hello Stephan,
Am 12.09.2006 um 12:42 Uhr haben Sie geschrieben:
typedef adjacency_list < vecS, vecS, undirectedS, tVertex> tGraph;
after that you get a property map from the graph: typedef property_map
::type tDistanceMap; I think "graph_t" should be "tGraph", shouldn't ist?
Yep, typo. Sorry. Actually there was another one in the visitor. So,
here again a full example of how I would do it (including the
exception thrown if a max-distance was discovered)
Please try this one (it's the altered bfs-example):
#include
participants (2)
-
boost@daniel-gohlke.de
-
Stephan Diederich