dual_weights: Specify dual edge weights

View source: R/weights.R

dual_weightsR Documentation

Specify dual edge weights

Description

Dual edge weights are two sets of edge weights, one (the actual weight) to determine the shortest path, and the other (the reported weight) to report the cost of that path.

Usage

dual_weights(reported, actual)

Arguments

reported

The edge weights to be reported. Evaluated by evaluate_weight_spec.

actual

The actual edge weights to be used to determine shortest paths. Evaluated by evaluate_weight_spec.

Details

Dual edge weights enable dual-weighted routing. This is supported by the dodgr routing backend.

Value

An object of class dual_weights.


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.