Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-08-09 15:01:43


On Aug 6, 2005, at 3:31 PM, Fabian Buske wrote:
> The visitor is called by:
> property_map<Graph, edge_weight_t>::type weightmap = get(edge_weight,
> g);
> prim_minimum_spanning_tree(g, root, &p[0], distance, weightmap,
> indexmap,
> visitor(visit_special_dijkstra(weightmap)));

I believe this is the problem. Remove the "visitor" call, so that the
call to Prim's algorithm is:

> prim_minimum_spanning_tree(g, root, &p[0], distance, weightmap,
> indexmap,
> visit_special_dijkstra(weightmap));

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk