Class ConnectedComponents<V>

    • Constructor Detail

      • ConnectedComponents

        public ConnectedComponents()
    • Method Detail

      • cluster

        public List<Set<V>> cluster​(Graph<V> g)
        Description copied from interface: Clusterer
        Clusters the vertices of the given graph and returns a list of clusters (sets).
        Specified by:
        cluster in interface Clusterer<V>
        Parameters:
        g - the graph
        Returns:
        the clusters