unpack {gretel} | R Documentation |
Used with all_opt_gpv
and all_opt_ppv
to
unpack individual paths from the Dijkstra-format trees that
those functions return.
unpack(tree, source, target)
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 |
Returns NA
if a path does not exist