Class SpectralClustering<V,​E>

    • Constructor Detail

      • SpectralClustering

        public SpectralClustering​(org.jgrapht.Graph<V,​E> graph,
                                  org.apache.commons.math3.ml.clustering.Clusterer<NodeEmbedding<V>> clusterer,
                                  int k)
        Create an instance of the Spectral Clustering algorithm.
        Parameters:
        graph - the graph
        clusterer - the clustering algorithm
        k - the number of clusters
    • Method Detail

      • builder

        public static <V,​E> SpectralClustering.Builder<V,​E> builder()
        Create a builder.
        Type Parameters:
        V - the type of nodes in the graph
        E - the type of edges in the graph
        Returns:
        a builder
      • getClustering

        public org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V> getClustering()
        Specified by:
        getClustering in interface org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>