From 237eeb97ccc616ab883e18ee1bcee27bb60e8e9e Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Tue, 19 Sep 2000 04:26:42 +0000 Subject: [PATCH] changed Graph::xxx to graph_traits::xxx [SVN r7740] --- examples/kevin_bacon.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/kevin_bacon.cpp b/examples/kevin_bacon.cpp index eabef436..181dd3f7 100644 --- a/examples/kevin_bacon.cpp +++ b/examples/kevin_bacon.cpp @@ -52,8 +52,8 @@ main() typedef adjacency_list Graph; - typedef Graph::vertex_descriptor Vertex; - typedef Graph::edge_descriptor Edge; + typedef graph_traits::vertex_descriptor Vertex; + typedef graph_traits::edge_descriptor Edge; typedef map NameVertexMap; NameVertexMap actors; @@ -106,7 +106,7 @@ main() } { - Graph::edge_iterator i, end; + graph_traits::edge_iterator i, end; for (tie(i, end) = edges(g); i != end; ++i) cout << actor_name[source(*i, g)] << " was in " << connecting_movie[*i] << " with " @@ -131,8 +131,8 @@ main() make_ucs_visitor(record_predecessors(predecessor.begin(), on_edge_relaxed()))); - Graph::vertex_iterator i, end; - for (tie(i,end) = vertices(g); i != end; ++i) + graph_traits::vertex_iterator i, end; + for (tie(i, end) = vertices(g); i != end; ++i) cout << actor_name[*i] << "'s bacon number is " << bacon_number[*i] << endl;