pub type EdgeWeightFn = Arc<dyn for<'a, 'b, 'c> Fn(&'a str, &'b str, &'c str, f64) -> Option<(String, f64)> + Send + Sync>;Expand description
Edge-weight contributor: per-edge (subject, predicate, object, base)
adjustment. Return Some((mode, value)) to alter the weight, None
for no change. Modes: add | multiply | replace | veto. Every applied
contribution is recorded on the affected rank items’ reasons.
Aliased Type§
pub struct EdgeWeightFn { /* private fields */ }