convertNodePair: transform a pair of nodes (i,j) into an identifying integer

Description Usage Arguments Details

View source: R/auxiliaryFunctions.R

Description

Associates an identifying integer with a pair of nodes (i,j)

Usage

1
convertNodePair(i, j, n, directed)

Arguments

i

scalar or vector

j

scalar or vector, same length as i

n

number of vertices

directed

booelan to indicate whether the model is directed or undirected

Details

returns the row number of the matrix build by listNodePairs(n) containing the pair (i,j)


noisySBM documentation built on Dec. 16, 2020, 5:09 p.m.