binary_distance: Binary Distance of a Network Path
Description
Calculates the binary distance of a user-specified network path through a network,
if all edges exist. Otherwise, returns Inf to signify infinite distance.
Usage
binary_distance(sociomatrix, path)
Arguments
sociomatrix
a nonnegative, real valued sociomatrix.
path
an integer vector of node indices from sociomatrix.
# NOT RUN {## Calculate binary distance along a path in a sociomatrixbinary_distance(YangKnoke01, path = c(1,2,5))
## This path doesn't existbinary_distance(YangKnoke01, path = c(1,2,4,5))
# }