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 |
---|
VertexAndWeight(Set<V> v,
double w,
boolean active)
Construct a new weighted vertex.
|
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 © 2019. All rights reserved.