Skip to main content

Module selector

Module selector 

Source

Structsยง

HoprGraphPathSelector
A lightweight graph-backed path selector.
MetricsValueFn ๐Ÿ”’
Wraps an EdgeValueFn<f64, W> as a ValueFn whose Value type carries both the cost and per-path quality aggregates.
PathCostWithMetrics ๐Ÿ”’
Accumulated path cost and quality aggregates, folded edge-by-edge during DFS.

Functionsยง

compute_paths ๐Ÿ”’
Compute candidate paths from src to dest through graph.
opt_min ๐Ÿ”’
Returns the minimum of two Option<T> values, preferring Some over None.
prune_for_consistency
Trim the candidate set to lower median latency and minimise variance while preserving an anonymity floor.