build_correlation_graph

Function build_correlation_graph 

Source
pub fn build_correlation_graph(
    correlations: &[(String, String, f64)],
    threshold: f64,
) -> HashMap<String, HashMap<String, f64>>
Expand description

Build a graph of crates where edges represent correlations above or equal to a given threshold.

Returns a HashMap: crate_name -> HashMap<adj_crate_name, correlation>