bipartite.from.sequence: Generates a bipartite graph from row and column degree...

Description Usage Arguments Examples

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

Description

'bipartite.from.sequence' returns a bipartite graph, as an object of the requested class, that has the given row and column degree sequences.

Usage

1

Arguments

R

numeric vector: requested row degree sequence of positive integers

C

numeric vector: requested column degree sequence of positive integers

class

string: the class of the returned backbone graph, one of c("matrix", "Matrix", "sparseMatrix", "igraph", "network")

Examples

1
2
3
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")
B <- bipartite.from.sequence(R = c(1,1,2), C = c(1,1,2), class = "network")

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