Merges two graphs maintaining whilst thier attributes.
union2(g1, g2)
g1 | Igraph object |
---|---|
g2 | Igraph object |
A new graph object
This function is an upgrade to the igraph function "union". It creates the union of two networks, and merges attributes with the same name. In the original union the graph attributes were lost. In the case where there are overlapping nodes the attributes of g1 take precedence
union2(g1,g2)#> Error in "igraph" %in% class(graph): object 'g1' not found#> Error in Reduce(union2, list(g1, g2, g3)): object 'g1' not found