
Last chance! 50% off unlimited learning
Sale ends in
layout.bipartite (graph, types = NULL, hgap = 1, vgap = 1, maxiter = 100)
type
types
argument
must be given.NULL
(the default), then the type
layout.sugiyama
).layout.sugiyama
# Random bipartite graph
inc <- matrix(sample(0:1, 50, replace=TRUE, prob=c(2,1)), 10, 5)
g <- graph.incidence(inc)
plot(g, layout=layout.bipartite,
vertex.color=c("green","cyan")[V(g)$type+1])
# Two columns
lay <- layout.bipartite(g)
plot(g, layout=lay[,2:1])
Run the code above in your browser using DataLab