findAllPaths: Identifies all paths between all pairs of less than or equal...

Description Usage Arguments Value See Also Examples

View source: R/findAllPaths.R

Description

findAllPaths Identifies all paths length less than or equal to maxLength between all pairs of competitors

Usage

1
findAllPaths(conf, maxLength = 2)

Arguments

conf

a matrix of conf.mat class. An N-by-N conflict matrix whose (i,j)th element is the number of times i defeated j.

maxLength

a positive numeric integer indicating the maximum length of paths to identify

Value

A list of two elements.

direct pathways

direct pathways found in original matrix

indirect pathways

a list of all paths from length 2 to the given length

See Also

countPaths findIDpaths transitivity

Examples

1
2
3
4
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find all paths of legnth 3
allp.3 <- findAllPaths(confmatrix, 3)

Perc documentation built on April 28, 2020, 1:08 a.m.