Skip to contents

Find the Minimum Hop Limit for Path Existence

Usage

minh.limit(path.result, from, to)

Arguments

path.result

A path.graph.series object.

from

Source vertex index.

to

Target vertex index.

Value

Minimum hop limit where the path exists, or NULL.

Examples

graph <- list(2L, c(1L, 3L), 2L)
lengths <- list(1, c(1, 2), 2)
series <- create.path.graph(dgraph(graph, lengths), h.values = 1:2)
minh.limit(series, from = 1, to = 3)
#> [1] 2