Skip to contents

Compare Paths Across Hop Limits

Usage

compare.paths(path.result, from, to)

Arguments

path.result

A path.graph.series object.

from

Source vertex index.

to

Target vertex index.

Value

Data frame describing path availability and length by hop limit.

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)
compare.paths(series, from = 1, to = 3)
#>     h path_exists path_length n_hops    path
#> h_1 1       FALSE          NA     NA    NULL
#> h_2 2        TRUE           3      2 1, 2, 3