Skip to main content

compute_lcom4

Function compute_lcom4 

Source
pub fn compute_lcom4(method_graph: &UnGraph<String, ()>) -> Option<usize>
Expand description

Connected-component count on an undirected method graph.

Returns None when the graph is empty — LCOM4 is undefined for a class with no methods, matching the ValueError raised by the Python reference implementation.