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:
@@ -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(&predecessor[0],
|
||||
on_examine_edge()),
|
||||
record_distances(&bacon_number[0],
|
||||
on_examine_edge()))))
|
||||
);
|
||||
</PRE>
|
||||
|
||||
<P>
|
||||
|
||||
Reference in New Issue
Block a user