findAllPaths {Perc} | R Documentation |
Identifies all paths between all pairs of less than or equal to a certain length
Description
findAllPaths
Identifies all paths length less than or equal
to maxLength
between all pairs of competitors
Usage
findAllPaths(conf, maxLength = 2)
Arguments
conf |
a matrix of conf.mat class. An N-by-N conflict matrix whose |
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
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find all paths of legnth 3
allp.3 <- findAllPaths(confmatrix, 3)
[Package Perc version 0.1.6 Index]