graph.full.bipartite (n1, n2, directed = FALSE, mode = c("all", "out", "in"))
out
in
type
type
FALSE
for the vertices of the first
kind and TRUE
for vertices of the second kind.graph.full
for creating one-mode full graphsg <- graph.full.bipartite(2, 3)
g2 <- graph.full.bipartite(2, 3, dir=TRUE)
g3 <- graph.full.bipartite(2, 3, dir=TRUE, mode="in")
g4 <- graph.full.bipartite(2, 3, dir=TRUE, mode="all")
Run the code above in your browser using DataLab