powered by
countPaths Identifies the number of paths of length less than or equal to maxLength between all pairs
countPaths
maxLength
countPaths(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 in which elements are number of paths between all pairs of a given length.
as.conflictmat, findIDpaths, transitivity, conductance
as.conflictmat
findIDpaths
transitivity
conductance
# NOT RUN { # convert an edgelist to conflict matrix confmatrix <- as.conflictmat(sampleEdgelist) # find number of paths of length 3 or less npaths <- countPaths(confmatrix, 3) # }
Run the code above in your browser using DataLab