Documentation of 'org.jgrapht.alg.TransitiveReduction' Java class
TransitiveReduction
org.jgrapht.alg

Class TransitiveReduction

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      <V,E> void reduce(DirectedGraph<V,E> directedGraph)
      This method will remove all transitive edges from the graph passed as input parameter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reduce

        public <V,E> void reduce(DirectedGraph<V,E> directedGraph)
        This method will remove all transitive edges from the graph passed as input parameter.

        You may want to clone the graph before, as transitive edges will be pitilessly removed.

        e.g.
         {
             @code DirectedGraph<V, T> soonToBePrunedDirectedGraph;
        
             TransitiveReduction.INSTANCE.reduce(soonToBePrunedDirectedGraph);
        
             // pruned !
         }
         
        Type Parameters:
        V - the graph vertex type
        E - the graph edge type
        Parameters:
        directedGraph - the directed graph that will be reduced transitively

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.