Union two networks

c_net_union(go1, go2, ...)

Arguments

go1

metanet object

go2

metanet object

...

add

Value

metanet

See also

Examples

g1 <- make_graph(edges = c("1", 2, 2, 3, 3, 4, 4, 5, 5, 1), directed = FALSE) %>% as.metanet()
g2 <- make_graph(edges = c("4", 5, 5, 6, 6, 7, 7, 8, 8, 4), directed = FALSE) %>% as.metanet()
par(mfrow = c(1, 3))
plot(c_net_union(g1, g2))
#> Duplicated vertexes: 2
#> Use the attributes of the first network.
#> Duplicated edges: 2
#> Use the attributes of the first network.
plot(c_net_intersect(g1, g2))
#> Duplicated vertexes: 2
#> Use the attributes of the first network.
#> Duplicated edges: 2
#> Use the attributes of the first network.
plot(c_net_difference(g1, g2))
#> Duplicated vertexes: 2
#> Use the attributes of the first network.
#> Duplicated edges: 2
#> Use the attributes of the first network.