unpack: Unpacks a Path from a Dijkstra-Format Spanning Tree

Description Usage Arguments Details

View source: R/support.R

Description

Used with all_opt_gpv and all_opt_ppv to unpack individual paths from the Dijkstra-format trees that those functions return.

Usage

1
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


gretel documentation built on Aug. 22, 2019, 5:10 p.m.