listNodePairs: List node pairs

Description Usage Arguments Value Examples

View source: R/auxiliary.R

Description

Create the list of all node pairs

Usage

1
listNodePairs(n, directed = TRUE)

Arguments

n

Total number of nodes

directed

Boolean for directed (TRUE) or undirected (FALSE) case

Value

Matrix with two columns which lists all the possible node pairs. Each row is a node pair.

Examples

1
2
3
4
5
# List all the node pairs with 10 nodes, for directed and undirected graphs

n <- 10
listNodePairs(n, TRUE)
listNodePairs(n, FALSE)

ppsbm documentation built on March 19, 2018, 5:03 p.m.