c_net_union: Union two networks

View source: R/2-2.manipulate.R

c_net_unionR Documentation

Union two networks

Description

Union two networks

Usage

c_net_union(go1, go2, ...)

Arguments

go1

metanet object

go2

metanet object

...

add

Value

metanet

See Also

Other manipulate: anno_edge(), anno_vertex(), c_net_annotate(), c_net_filter(), c_net_load(), c_net_save(), get_e(), get_n(), get_v(), is_metanet()

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))
plot(c_net_intersect(g1, g2))
plot(c_net_difference(g1, g2))

MetaNet documentation built on June 26, 2025, 5:07 p.m.