On 04/10/2012 03:54 PM, kavya wrote:
Thanks. That did help. However, I should have been specific in mentioning vertex properties. The graph union function merges graph properties. My subgraph nodes have a few additional vertex properties as compared to the main one and these do not get merged automatically. I wrote a few lines of code to accomplish that, but, just wanted to know if the props parameter in graph union function can handle that too.
You can merge as many property maps as you want, just by passing a list to graph_union() with all the properties you want merged. If a given property map is only defined for one graph, but not the other, then you must create an empty property map for the other graph, in order for it to be merged. This is not handled automatically by graph_union(), but maybe it should... Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>