Class StoerWagnerMinimumCut.VertexAndWeight

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean active  
      java.util.Set<V> vertex  
      java.lang.Double weight  
    • Constructor Summary

      Constructors 
      Constructor Description
      VertexAndWeight​(java.util.Set<V> v, double w, boolean active)
      Construct a new weighted vertex.
    • Field Detail

      • vertex

        public java.util.Set<V> vertex
      • weight

        public java.lang.Double weight
      • active

        public boolean active
    • Constructor Detail

      • VertexAndWeight

        public VertexAndWeight​(java.util.Set<V> v,
                               double w,
                               boolean active)
        Construct a new weighted vertex.
        Parameters:
        v - the vertex
        w - the weight of the vertex
        active - whether it is active
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object