public class MinSourceSinkCut<V,E> extends Object
Constructor and Description |
---|
MinSourceSinkCut(DirectedGraph<V,E> graph) |
MinSourceSinkCut(DirectedGraph<V,E> graph,
double epsilon) |
Modifier and Type | Method and Description |
---|---|
void |
computeMinCut(V source,
V sink)
Compute a minimum s-t cut
|
V |
getCurrentSink()
Returns the sink of the last call
|
V |
getCurrentSource()
Returns the source of the last call
|
Set<E> |
getCutEdges()
Let S be the set containing the source, and T be the set containing the
sink, i.e.
|
double |
getCutWeight()
Get the cut weight.
|
Set<V> |
getSinkPartition()
Returns the min cut partition containing the sink
|
Set<V> |
getSourcePartition() |
public MinSourceSinkCut(DirectedGraph<V,E> graph)
public MinSourceSinkCut(DirectedGraph<V,E> graph, double epsilon)
public void computeMinCut(V source, V sink)
source
- sink
- public Set<V> getSourcePartition()
public Set<V> getSinkPartition()
public double getCutWeight()
public Set<E> getCutEdges()
public V getCurrentSource()
public V getCurrentSink()
Copyright © 2016. All rights reserved.