protected class StoerWagnerMinimumCut.VertexAndWeight extends Object implements Comparable<StoerWagnerMinimumCut.VertexAndWeight>
Modifier and Type | Field and Description |
---|---|
boolean |
active |
Set<V> |
vertex |
Double |
weight |
Constructor and Description |
---|
StoerWagnerMinimumCut.VertexAndWeight(Set<V> v,
double w,
boolean active) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(StoerWagnerMinimumCut.VertexAndWeight that)
compareTo that sorts in reverse order because we need extract-max and
queue provides extract-min.
|
String |
toString() |
public int compareTo(StoerWagnerMinimumCut.VertexAndWeight that)
compareTo
in interface Comparable<StoerWagnerMinimumCut.VertexAndWeight>
Copyright © 2016. All rights reserved.