add comments

This commit is contained in:
eugenefischer
2022-09-25 16:10:17 -05:00
parent 475bbf3107
commit 58fa140ee5
2 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import java.util.Map;
public interface GraphModificationFunctions {
//remove over- and under-weight edges
//remove over- and under-weight edges, return removed edges
static Map<Vertex[], Integer> filterByOverlapThresholds(SimpleWeightedGraph<Vertex, DefaultWeightedEdge> graph,
int low, int high, boolean saveEdges) {
Map<Vertex[], Integer> removedEdges = new HashMap<>();
@@ -35,7 +35,7 @@ public interface GraphModificationFunctions {
return removedEdges;
}
//Remove edges for pairs with large occupancy discrepancy
//Remove edges for pairs with large occupancy discrepancy, return removed edges
static Map<Vertex[], Integer> filterByRelativeOccupancy(SimpleWeightedGraph<Vertex, DefaultWeightedEdge> graph,
Integer maxOccupancyDifference, boolean saveEdges) {
Map<Vertex[], Integer> removedEdges = new HashMap<>();
@@ -63,7 +63,7 @@ public interface GraphModificationFunctions {
return removedEdges;
}
//Remove edges for pairs where overlap size is significantly lower than the well occupancy
//Remove edges for pairs where overlap size is significantly lower than the well occupancy, return removed edges
static Map<Vertex[], Integer> filterByOverlapPercent(SimpleWeightedGraph<Vertex, DefaultWeightedEdge> graph,
Integer minOverlapPercent,
boolean saveEdges) {