| flament_path_length {gretel} | R Documentation |
Flament's Path Length Measure
Description
Calculates path length as defined in Flament (1963). That is, sums the
values of each edge in the path, if all edges exist. Otherwise, returns NA.
Usage
flament_path_length(sociomatrix, path)
Arguments
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
See Also
Examples
## Calculate Flament's Path Length along a path in a sociomatrix
flament_path_length(YangKnoke01, path = c(1,2,5))
## This path doesn't exist
flament_path_length(YangKnoke01, path = c(1,2,4,5))
[Package gretel version 0.0.1 Index]