unpack: 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 all_opt_gpv
or all_opt_ppv
source
an integer index corresponding to a node in sociomatrix
target
an integer index corresponding to a node in sociomatrix
Details
Returns NA
if a path does not exist