edu.stanford.math.plex4.bottleneck
public class WeightedBipartiteGraph extends java.lang.Object
Constructor and Description |
---|
WeightedBipartiteGraph(int partitionSize) |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(int source,
int destination,
double weight) |
int |
computeMaximumCardinalityMatching() |
double |
computePerfectMatchingThreshold()
This function computes the smallest value, v, that when the current
bipartite graph is filtered by v, a perfect matching exists.
|
WeightedBipartiteGraph |
filterByMaximum(double maximumWeight) |
boolean |
hasPerfectMatching() |
public void addEdge(int source, int destination, double weight)
public WeightedBipartiteGraph filterByMaximum(double maximumWeight)
public int computeMaximumCardinalityMatching()
public boolean hasPerfectMatching()
public double computePerfectMatchingThreshold()