mstUB: Shortest Path Upper Bound

Description Usage Arguments Details Value Examples

View source: R/mstUB.R

Description

mstUB Compute the shortest path upper bound for all unknown entries in a partial distance matrix

Usage

1

Arguments

A

A (connected) partial distance matrix, with unknown entries set to Inf

Details

This function uses the shortest.paths() function, available in the igraph package.

Value

UB A matrix containing the upper bounds for only the unknown entries. All other entries will be set to Inf.

Examples

1
2
A <- dist(cbind(rnorm(10,0,1),rnorm(10,0,1)))
mstUB(as.matrix(A))

great-northern-diver/edmcr documentation built on Dec. 20, 2021, 12:52 p.m.