Description Usage Arguments Details Value Author(s) See Also
‘uDist’ Computing shortest path distance (hop count) for an unweighted similarity graph where 1=edge and 0=no edge (i.e. invoke knnGraph with weight=FALSE)
‘floyd’ Floyd's algorithm (SLOW) for computing shortest path distances (weighted hop count) for distance weighted graphs (i.e. invoke knnGraph with weight=TRUE).
1 2 3 |
x |
the adjacency n by n matrix (distance weighted) |
verbose |
print the progress for Floyd's algorithm |
g |
the adjacency n by n matrix (unweighted) |
k |
input parameter for determining the maximum distance to compute (a distance of greater than k is taken as infinity) |
These implementations are not yet optimized for large data sets (>5000 observations)
D |
Distance Matrix n by n |
Mark Culp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.