Hi All,
i need some help with parallel boost graph library.
In particular, i am trying to modify the structure of the graph (distributed adjacency list) after it is loaded. The code snippet is at
http://pastebin.com/erizQ0Sf.
The problem is that clear_vertex(v,g) and remove_vertex(v,g) does not seem to operate on the same vertex in the graph.
The graph_viz output is available here for different scenarios:
As you can see in the above figure:
The first image is the original graph split into two partitions (mpirun -np 2 ./test)
The second image is after clear_vertex is called for one of the vertices. Notice vertex "0". All the edges are removed as expected.
I tried putting synchronize(g) after each call, or at the end of both calls. but both gives the same results.
Is this a bug or am i doing something wrong.
Your help will be greatly appreciated.
Thanks,
Alok Kumbhare