Description Usage Arguments Examples
View source: R/bipartite.from.probability.R
'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.
1 | 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"). |
1 2 3 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.