[graph] [parallel graph] property and distributedS
Hello, using the parallel graph library, I try to combine the property definition for a vertex typedef property<vertex_rank_t, int, VVV> vertex_property_t; with the vertex storage type distributedS in a distributed adjacency_list. Unfortunately this does not compile in the form listed below. Now, I would like to learn why the code actually compiles fine if a) distributedS is changed to vecS (see typdef vertex_storage_t), b) property<vertex_rank_t, int, VVV> is changed to VVV (see typedef vertex_property_t). I need the property vertex_rank_t for redistribution of the graph. Thank you very much, Andreas #include <boost/graph/use_mpi.hpp> #include <boost/graph/distributed/adjacency_list.hpp> #include <boost/graph/distributed/mpi_process_group.hpp> using namespace boost; using boost::graph::distributed::mpi_process_group; struct VVV { friend class boost::serialization::access; template<class Archive> void serialize(Archive & ar, const unsigned int version) { } }; //typedef vecS vertex_storage_t ; typedef distributedS<mpi_process_group, vecS> vertex_storage_t ; //typedef VVV vertex_property_t; typedef property<vertex_rank_t, int, VVV> vertex_property_t; typedef adjacency_list<vecS, vertex_storage_t, directedS, vertex_property_t> G; int main () { G g(10); }
participants (1)
-
Andreas Zilian