all_opt_gpv {gretel} | R Documentation |
Optimize All Generalized Path Values
Description
Identify the path of optimal generalized path value from every source
to every target in sociomatrix
.
Usage
all_opt_gpv(sociomatrix, p = Inf, node_costs = NULL)
Arguments
sociomatrix |
a nonnegative, real valued sociomatrix. |
p |
a nonnegative real number that sets the 'p-norm' parameter for generalized path value calculation. |
node_costs |
a list of costs, in order, of all nodes represented in the sociomatrix, all are assumed 0 if unspecified |
Value
All optimal paths from source to target nodes in sociomatrix
. To
minimize memory usage, paths are returned as a list of trees in Dijkstra's
format. Specific paths can be unpacked with unpack
as described in the
example below.
See Also
gpv
to calculate the value of a user-specified path,
opt_gpv
to identify the optimal path from a single source
node to a single target node
[Package gretel version 0.0.1 Index]