
6 Oct
2011
6 Oct
'11
7:53 p.m.
Hi List I would like a help on figuring out how to manage bunch of Graph object as a vector. (vector could be ublas vector or stl doesn't matter) What I'm looking for is an operation that looks like the following: // (It doesn't work as it is.) typedef boost::adjacency_matrixboost::directedS Graph; Graph g0, g1, g2; ublas::vector<Graph> ListOfGraphs; ListOfGraphs.resize(3); ListOfGraphs(0) = g0; ListOfGraphs(1) = g1; ListOfGraphs(2) = g2; I'd appreciate it if you could give me an advice. Thank you. -- Yaji