Class MaxMax.Implementation<V,​E>

  • Type Parameters:
    V - the type of nodes in the graph
    E - the type of edges in the graph
    Enclosing class:
    MaxMax<V,​E>

    protected static class MaxMax.Implementation<V,​E>
    extends Object
    Actual implementation of MaxMax.
    • Field Detail

      • graph

        protected final org.jgrapht.Graph<V,​E> graph
        The graph.
      • weights

        protected final Map<V,​Double> weights
        The weights.
      • digraph

        protected final org.jgrapht.Graph<V,​org.jgrapht.graph.DefaultEdge> digraph
        The directed graph.
    • Constructor Detail

      • Implementation

        public Implementation​(org.jgrapht.Graph<V,​E> graph)
        Create an instance of the MaxMax clustering algorithm implementation.
        Parameters:
        graph - the graph
    • Method Detail

      • compute

        public MaxMaxClustering<V> compute()
        Perform clustering with MaxMax.
        Returns:
        the clustering
      • buildArcs

        protected void buildArcs()
        Build the intermediate directed graph.
      • extractClusters

        protected Map<V,​Set<V>> extractClusters()
        Extract the quasi-strongly connected subgraphs from the intermediate directed graph.
        Returns:
        the map of cluster roots to the clusters