opt_gpv {gretel} | R Documentation |
Optimize Generalized Path Value
Description
Identify the path of optimal generalized path value from a source node to a target node.
Usage
opt_gpv(sociomatrix, source, target, p = Inf, node_costs = NULL)
Arguments
sociomatrix |
a nonnegative, real valued sociomatrix. |
source |
an integer index corresponding to a node in |
target |
an integer index corresponding to a node in |
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 |
See Also
gpv
to calculate the value of a user-specified path,
all_opt_gpv
to simultaneously identify the optimal paths
from any source node to any target node.
[Package gretel version 0.0.1 Index]