9 Apr
2012
9 Apr
'12
8 p.m.
On 04/09/2012 09:35 PM, Kavya Shagrithaya wrote:
I have one query about modifications with graphs. There is a subgraph that I identify using pattern matching and remove it. The intention is to replace that part with another graph. Using the graph_union function the graphs are combined structurally, however, all the properties of the graph being inserted are lost. Is there any way for insertion of subgraphs with the properties preserved?
Yes, take a look the documentation for the graph_union() function, in particular the 'props' parameter. It lets you provide a list of property maps which are merged in the combined graph. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>