
11 Jul
2006
11 Jul
'06
1:04 p.m.
On Jul 11, 2006, at 5:42 AM, Heiko Bauke wrote:
Hello,
how can I deal with bipartite graphs and BGL? In particular I have the problem that my graph has two kinds of nodes with different kinds of vertex properties. Any suggestions?
You could use store a property of type boost::variant<node1_data, node2_data> on each node. The variant will tell you which kind of node it is, and store node1_data/node2_data will store the properties appropriate for the different kinds of nodes. Doug