opt_gpv: Optimize Generalized Path Value

Description Usage Arguments See Also

View source: R/opt_gpv.R

Description

Identify the path of optimal generalized path value from a source node to a target node.

Usage

1
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 sociomatrix

target

an integer index corresponding to a node in 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

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.


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