n2nbPairs: n2nbPairs : compute the number of Dyads from the number of...

Description Usage Arguments Value Examples

View source: R/tools.R

Description

n2nbPairs : compute the number of Dyads from the number of nodes for a network

Usage

1
n2nbPairs(n, symmetric, diag = FALSE)

Arguments

n

: number of nodes

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 <- 10;
N <- n2nbPairs(n, symmetric = TRUE, diag=FALSE)

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