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 <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
