Description Usage Arguments Examples
Calculates the binary distance of a user-specified network path through a network,
if all edges exist. Otherwise, returns Inf
to signify infinite distance.
1 | binary_distance(sociomatrix, path)
|
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
1 2 3 4 5 | ## 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.