unpack {gretel} | R Documentation |
Unpacks a Path from a Dijkstra-Format Spanning Tree
Description
Used with all_opt_gpv
and all_opt_ppv
to
unpack individual paths from the Dijkstra-format trees that
those functions return.
Usage
unpack(tree, source, target)
Arguments
tree |
a Dijkstra-format tree returned by |
source |
an integer index corresponding to a node in |
target |
an integer index corresponding to a node in |
Details
Returns NA
if a path does not exist
[Package gretel version 0.0.1 Index]