Skip to main content

write_derived

Function write_derived 

Source
pub fn write_derived(node: &mut Node)
Expand description

Compute the graph-derived built-in metrics ([GRAPH_DERIVED], e.g. hk) onto node, AFTER the coupling pass has written fan_in/fan_out. Reads the node’s own (already-rounded) numeric attributes — exactly the values the former Rust hk read via attr_f64 — so emitted values are unchanged. Pre-graph fields (volume/mi/…) are NOT recomputed here: they are written by write_metrics from the raw, unrounded tier-1 counts and must not be re-derived from the rounded node attributes. Each value is dropped at its omit_at. No-op when no [fields.*] is graph-derived.