nbPairs2n: nbPairs2n : compute the number of nodes of a network from its...

Description Usage Arguments Value Examples

View source: R/tools.R

Description

nbPairs2n : compute the number of nodes of a network from its number of dyads

Usage

1
nbPairs2n(N, symmetric, diag = FALSE)

Arguments

N

: number of dyads

symmetric

: TRUE is the network is not directed. FALSE otherwise

diag

: FALSE if the self interactions are neglected. TRUE otherwise (default value = FALSE)

Value

number of dyades

Examples

1
2
N <- 45;
n <- nbPairs2n(n, symmetric = TRUE, diag=FALSE)

Sophiedonnet/NoisySBM documentation built on Oct. 20, 2020, 12:04 p.m.