Class CycleRemoval<T extends Comparable<T>>
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.graph.CycleRemoval<T>
- Type Parameters:
T
- The type of node
This class removes cycles based on the Agony algorithm.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCycleRemoval
(Map<T, Set<T>> graph) Constructor which accepts the graph and a function which computes cycles.Constructor which accepts the graph and precomputed cycles. -
Method Summary
-
Field Details
-
graph
-
cycleDetection
private final Function<Map<T extends Comparable<T>,Set<T extends Comparable<T>>>, cycleDetectionList<List<T extends Comparable<T>>>>
-
-
Constructor Details
-
CycleRemoval
Constructor which accepts the graph and precomputed cycles. Important: Use this only when no edges are added or removed (via addEdge and removeEdge).- Parameters:
graph
- the graphprecomputedCycles
- the precomputed cycles.
-
CycleRemoval
Constructor which accepts the graph and a function which computes cycles. This can beCycleDetection
or jgrapht algorithms.- Parameters:
graph
- the representation of the graphcycleDetection
- a function which expects a graph and compute cycles in them.
-
CycleRemoval
-
CycleRemoval
public CycleRemoval()
-
-
Method Details
-
addEdge
-
removeEdge
-
getEdgesToBeRemoved
-
findEdgeToBeRemoved
-
getRankDiff
-
getCycleFreeGraph
-