mstUB {edmcr} | R Documentation |
mstUB
Compute the shortest path upper bound for all unknown entries in a partial distance matrix
mstUB(A)
A |
A (connected) partial distance matrix, with unknown entries set to Inf |
This function uses the shortest.paths() function, available in the igraph package.
UB A matrix containing the upper bounds for only the unknown entries. All other entries will be set to Inf.
A <- dist(cbind(rnorm(10,0,1),rnorm(10,0,1)))
mstUB(as.matrix(A))