bipartite.from.probability {backbone} | R Documentation |
'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.
bipartite.from.probability(R, C, P = 0, class = "matrix")
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"). |
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")