Skip to main content

EdgeAdjust

Type Alias EdgeAdjust 

Source
pub type EdgeAdjust = dyn for<'a, 'b, 'c> Fn(&'a str, &'b str, &'c str, f64) -> Option<(String, f64)>;
Expand description

Per-edge weight adjust hook (DoD 23): adjust(subject, predicate, object, base) -> Option<(mode, value)>, modes add | multiply | replace | veto. None keeps the base weight.