public class GraphCycleDetector extends Object
| Constructor and Description |
|---|
GraphCycleDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRelations(String child,
Collection<String> parents)
Add child/parent relations to the graph
|
Set<String> |
checkCycles()
Check cycles among the graph.
|
void |
removeRelations(String child,
Collection<String> parents)
Remove child/parent relations from the graph
|
public void addRelations(String child, Collection<String> parents)
child - the child unit idparents - the list of parent unit idspublic void removeRelations(String child, Collection<String> parents)
child - the child unit idparents - the list of parent unit idsCopyright © 2020 Vitam. All rights reserved.