findAllPaths {Perc} | R Documentation |
findAllPaths
Identifies all paths length less than or equal
to maxLength
between all pairs of competitors
findAllPaths(conf, maxLength = 2)
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 |
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 |
countPaths
findIDpaths
transitivity
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find all paths of legnth 3
allp.3 <- findAllPaths(confmatrix, 3)