2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-31 20:22:09 +00:00

changed the argument order for MutableGraph to be consistent

with the other functions.
Also added the remove_edge(e, g) and remove_edge(iter, g) functions.


[SVN r7856]
This commit is contained in:
Jeremy Siek
2000-09-27 18:19:35 +00:00
parent e80dc97c43
commit 9245287c65
40 changed files with 730 additions and 399 deletions

View File

@@ -84,16 +84,16 @@ int main(int argc, char* argv[])
graph_traits<Graph>::edge_descriptor e;
bool flag;
boost::tie(e,flag) = add_edge(G, 0, 1);
boost::tie(e,flag) = add_edge(0, 1, G);
ds.union_set(0,1);
boost::tie(e,flag) = add_edge(G, 1, 4);
boost::tie(e,flag) = add_edge(1, 4, G);
ds.union_set(1,4);
boost::tie(e,flag) = add_edge(G, 4, 0);
boost::tie(e,flag) = add_edge(4, 0, G);
ds.union_set(4,0);
boost::tie(e,flag) = add_edge(G, 2, 5);
boost::tie(e,flag) = add_edge(2, 5, G);
ds.union_set(2,5);
cout << "An undirected graph:" << endl;