public class GraphAnalyzer extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | GraphAnalyzer.GraphAnalyzerBuilder | 
| Modifier and Type | Method and Description | 
|---|---|
| static GraphAnalyzer.GraphAnalyzerBuilder | builder() | 
| Set<String> | getAllDescendants(String name)Returns all the descendants of the given node, either direct or transitive ones. | 
| Set<List<String>> | getCycles() | 
| static GraphAnalyzer.GraphAnalyzerBuilder | withNode(String name,
        String... descendants) | 
public static GraphAnalyzer.GraphAnalyzerBuilder builder()
public static GraphAnalyzer.GraphAnalyzerBuilder withNode(String name, String... descendants)
public Set<String> getAllDescendants(String name)
Note:The list will only be complete if the graph contains no cycles.
name - the node name to get the descendants forCopyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.