Skip to main content

cmp_by_dependency

Function cmp_by_dependency 

Source
pub fn cmp_by_dependency(a: &Connectivity, b: &Connectivity) -> Ordering
Expand description

Centrality ordering: dependency degree (typed_total) descending first, then raw total descending, then id lexicographic ascending as a stable deterministic tie-break. Ranking by typed_total keeps a co-mention-inflated hub from outranking a real dependency hub.