all_opt_gpv: Optimize All Generalized Path Values

Description Usage Arguments Value See Also

View source: R/opt_gpv.R

Description

Identify the path of optimal generalized path value from every source to every target in sociomatrix.

Usage

1
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


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