2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-27 19:02:12 +00:00

updated to use named parameters

[SVN r9946]
This commit is contained in:
Jeremy Siek
2001-04-23 21:16:07 +00:00
parent ae3bdc2893
commit e28fd145c1

View File

@@ -248,11 +248,14 @@ predecessors, since this is not part of the basic algorithm.
<PRE>
Vertex src = actors["Kevin Bacon"];
dijkstra_shortest_paths
(g, src, bacon_number.begin(),
get(edge_weight, g), color.begin(), get(vertex_index, g),
make_ucs_visitor(record_predecessors(predecessor.begin(),
on_edge_relaxed())));
breadth_first_search
(g, src,
visitor(make_bfs_visitor
(make_list(record_predecessors(&amp;predecessor[0],
on_examine_edge()),
record_distances(&amp;bacon_number[0],
on_examine_edge()))))
);
</PRE>
<P>