countPaths {Perc} | R Documentation |
countPaths
Identifies the number of paths of length
less than or equal to maxLength
between all pairs
countPaths(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 in which elements are number of paths between all pairs of a given length.
as.conflictmat
, findIDpaths
, transitivity
, conductance
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find number of paths of length 3 or less
npaths <- countPaths(confmatrix, 3)