powered by
findAllPaths Identifies all paths length less than or equal to maxLength between all pairs of competitors
findAllPaths
maxLength
findAllPaths(conf, maxLength = 2)
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.
(i,j)
a positive numeric integer indicating the maximum length of paths to identify
A list of two elements.
direct pathways found in original matrix
a list of all paths from length 2 to the given length
countPaths findIDpaths transitivity
countPaths
findIDpaths
transitivity
# NOT RUN { # convert an edgelist to conflict matrix confmatrix <- as.conflictmat(sampleEdgelist) # find all paths of legnth 3 allp.3 <- findAllPaths(confmatrix, 3) # }
Run the code above in your browser using DataLab