Skip to main content

rescale_weight

Function rescale_weight 

Source
fn rescale_weight(w: f64) -> u8
Expand description

Rescale weight from [0,1] to u8 [1,255], with 0 = invalid.

Matches ROMEO.jl convention: valid edges always have weight ≥ 1.