hatvis.similarity.transitive_closure#
- hatvis.similarity.transitive_closure(S, method='max-product')[source]#
Transitive closure of a similarity matrix (strongest-chain similarity).
"max-product": \(s^\star_{ik}=\max_{P}\prod_{(u,v)\in P}s_{uv}\) over all chains \(P\) from \(i\) to \(k\) — the similarity of the strongest chain, computed by a Floyd–Warshall recursion; this is what the HAT-VIS implementation evaluates."max-min": the classical fuzzy transitive closure, \(\max_P\min_{(u,v)\in P}s_{uv}\).The result is symmetric if
Sis, never smaller thanSand has the same diagonal. Complexity \(O(n^3)\).