I'm using the igraph
library to create two graphs in the R:
g.v1 <- graph.full(6, directed= TRUE)
E(g.v1)$weight <- 1
g.merchant <- graph.empty(1, directed=TRUE)
E(g.merchant)$weight <- 1
This two graphs, g.v1
and g.merchant
, are disjoint. I would like to connect the g.merchant
graph, which only has 1 vertex, with any of the 6 vertices of the g.v1
graph. The new graph will have 7 vertices. How do I do this?