graphclust.cluster.jaccard_knn_graph#

graphclust.cluster.jaccard_knn_graph(X, k=15)[source]#

kNN graph re-weighted by the Jaccard index of the neighbor sets (PhenoGraph-style, Levine et al. 2015).

Only pairs that are linked in the symmetric \(k\)-NN graph keep an edge; its weight is \(|A_i\cap A_j|/|A_i\cup A_j|\) (similarities, not lengths), the first-order fuzzy neighborhood similarity.