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<List<String>> |
getCycles() |
int |
getTraversalSequence(String name)
Returns the traversal sequence number of the given node.
|
static GraphAnalyzer.GraphAnalyzerBuilder |
withNode(String name,
String... descendants) |
public static GraphAnalyzer.GraphAnalyzerBuilder builder()
public static GraphAnalyzer.GraphAnalyzerBuilder withNode(String name, String... descendants)
public int getTraversalSequence(String name)
Note: The traversal sequence numbers will only be complete if the graph contains no cycles.
name
- the node name to get the traversal sequence number for-1
if the node doesn't exist or the node was not visited (in
case of cycles).Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.