Class StoerWagnerMinimumCut.VertexAndWeight

java.lang.Object
org.jgrapht.alg.StoerWagnerMinimumCut.VertexAndWeight
All Implemented Interfaces:
Comparable<StoerWagnerMinimumCut<V,E>.VertexAndWeight>
Enclosing class:
StoerWagnerMinimumCut<V,E>

protected class StoerWagnerMinimumCut.VertexAndWeight extends Object implements Comparable<StoerWagnerMinimumCut<V,E>.VertexAndWeight>
Class for weighted vertices
  • Field Details

    • vertex

      public Set<V> vertex
    • weight

      public Double weight
    • active

      public boolean active
  • Constructor Details

    • VertexAndWeight

      public VertexAndWeight(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 Details