Function clusterByThreshold

  • Extracts clusters from a similarity graph based on a user-defined threshold. The threshold is used to trim weak edges leaving one or more fully connected sub graphs.

    Parameters

    Returns number[][]

    An array of clusters, sorted by size (largest first).