MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / assert_ranks_close

Function assert_ranks_close

src/graph/page_rank.rs:135–140  ·  view source on GitHub ↗

Assert that every node's rank is within `epsilon` of `expected`.

(ranks: &HashMap<String, f64>, expected: &[(&str, f64)], epsilon: f64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls

no outgoing calls