Coproduct (disjoint union) with injection morphisms
Examples
g1 <- path_graph(2) # 1 -> 2
g2 <- path_graph(2) # 1 -> 2
cp <- coproduct(g1, g2)
nv(cp$coproduct) # 4
#> [1] 4
ne(cp$coproduct) # 2
#> [1] 2
Coproduct (disjoint union) with injection morphisms
g1 <- path_graph(2) # 1 -> 2
g2 <- path_graph(2) # 1 -> 2
cp <- coproduct(g1, g2)
nv(cp$coproduct) # 4
#> [1] 4
ne(cp$coproduct) # 2
#> [1] 2