bipartite.from.probability: Generates a bipartite network with given edge probability
Description
bipartite.from.probability returns a bipartite graph, as an object of the requested class,
in which each edge has a given probability and where no node is an isolate or maximally connected.
Usage
bipartite.from.probability(R, C, P = 0, class = "matrix")
Arguments
R
integer: number of rows
C
integer: number of columns
P
numeric: probability of an edge; if P = 0 a probability will be chosen randomly
class
string: the class of the returned backbone graph, one of c("matrix", "Matrix", "sparseMatrix", "igraph", "network").
# NOT RUN {B <- bipartite.from.probability(R = 10, C = 10)
B <- bipartite.from.probability(R = 10, C = 10, P = .5)
B <- bipartite.from.probability(R = 10, C = 10, P = .5, class = "igraph")
# }