Skip to main content

Module weights

Module weights 

Source
Expand description

Edge weight management for the CSR index.

Optional f64 weight per edge stored in parallel arrays. None when the graph is entirely unweighted (zero memory overhead). Populated from the "weight" edge property at insertion time. Unweighted edges default to 1.0.

Functionsยง

extract_weight_from_properties
Extract the "weight" property from MessagePack-encoded edge properties.