binary_distance {gretel} | R Documentation |
Calculates the binary distance of a user-specified network path through a network,
if all edges exist. Otherwise, returns Inf
to signify infinite distance.
binary_distance(sociomatrix, path)
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
## Calculate binary distance along a path in a sociomatrix
binary_distance(YangKnoke01, path = c(1,2,5))
## This path doesn't exist
binary_distance(YangKnoke01, path = c(1,2,4,5))