pub fn subclass_closure(n: usize, edges: &[(usize, usize, f64)]) -> Vec<f64>Expand description
Graded transitive closure of subClassOf. Input edges (sub, super, degree)
over n classes. The closure degree that a ⊑ c is the best (t-conorm/max)
over all paths of the t-norm (product) along each path. Diagonal is 1.0
(every class is a subclass of itself with full degree). Returns the n×n
row-major degree matrix.