bipartite.from.probability: Generates a bipartite network with given edge probability

Description Usage Arguments Examples

View source: R/bipartite.from.probability.R

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

1
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").

Examples

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")

KGodard1/Fastball-SourceCpp documentation built on Dec. 18, 2021, 2:35 a.m.