Class CycleDetection<T extends Comparable<T>>
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.graph.CycleDetection<T>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCycleDetection
(Collection<T> nodes, Function<T, Set<T>> succesors) CycleDetection
(Map<T, Set<T>> graph) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getGraph()
Return the graph which is generated by callingaddEdge(T, T)
orremoveEdge(T, T)
.normalizePath
(List<T> list) static <T extends Comparable<T>>
List<List<T>>normalizePaths
(List<List<T>> paths) void
removeEdge
(T source, T target)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
graph
-
-
Constructor Details
-
CycleDetection
public CycleDetection() -
CycleDetection
-
CycleDetection
-
-
Method Details
-
addEdge
-
removeEdge
-
getGraph
Return the graph which is generated by callingaddEdge(T, T)
orremoveEdge(T, T)
.- Returns:
- the graph as a map from source to possibly multiple targets
-
getAllNodes
-
getCycles
-
normalizePath
-
normalizePaths
-