2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-01 08:32:11 +00:00

concept checking changes, and usage of concept changes

[SVN r8305]
This commit is contained in:
Jeremy Siek
2000-11-22 19:17:36 +00:00
parent f7f4e4ca0c
commit 644a810441
11 changed files with 109 additions and 65 deletions

View File

@@ -73,7 +73,7 @@ int main(int , char* [])
property< vertex_finish_time_t, int,
property< vertex_color_t, default_color_type > > > VertexProperty;
typedef adjacency_list <vecS, vecS, undirectedS, VertexProperty> Graph;
typedef Graph::vertex_descriptor Vertex;
typedef graph_traits<Graph>::vertex_descriptor Vertex;
Graph G;
add_edge(0, 1, G);
@@ -111,7 +111,7 @@ int main(int , char* [])
add_edge(3, 0, G);
add_edge(5, 2, G);
typedef Graph::vertex_descriptor Vertex;
typedef graph_traits<Graph>::vertex_descriptor Vertex;
std::vector<int> c(num_vertices(G));
int num = connected_components(G, &c[0], get(vertex_color, G),