powered by
bipartite.from.sequence returns a bipartite graph, as an object of the requested class, that has the given row and column degree sequences.
bipartite.from.sequence
bipartite.from.sequence(R, C, class = "matrix")
numeric vector: requested row degree sequence of positive integers
numeric vector: requested column degree sequence of positive integers
string: the class of the returned backbone graph, one of c("matrix", "Matrix", "sparseMatrix", "igraph", "network")
# NOT RUN { B <- bipartite.from.sequence(R = c(1,1,2), C = c(1,1,2)) B <- bipartite.from.sequence(R = c(1,1,2), C = c(1,1,2), class = "igraph") # }
Run the code above in your browser using DataLab