pub fn cohesion_score(graph: &KnowledgeGraph, community_nodes: &[String]) -> f64Expand description
Cohesion score: ratio of actual intra-community edges to maximum possible.
Returns a value in [0.0, 1.0] rounded to two decimal places.
pub fn cohesion_score(graph: &KnowledgeGraph, community_nodes: &[String]) -> f64Cohesion score: ratio of actual intra-community edges to maximum possible.
Returns a value in [0.0, 1.0] rounded to two decimal places.