N - Type of nodepublic interface HierarchicalGraph<N> extends Graph<N>
HierarchicalGraph is a multilevel graph that can be traversed by a HierarchicalPathFinder at any level of its
hierarchy.| Modifier and Type | Method and Description |
|---|---|
N |
convertNodeBetweenLevels(int inputLevel,
N node,
int outputLevel)
Converts the node at the input level into a node at the output level.
|
int |
getLevelCount()
Returns the number of levels in this hierarchical graph.
|
void |
setLevel(int level)
Switches the graph into the given level so all future calls to the
getConnections methods
act as if the graph was just a simple, non-hierarchical graph at that level. |
getConnectionsint getLevelCount()
void setLevel(int level)
getConnections methods
act as if the graph was just a simple, non-hierarchical graph at that level.level - the level to setN convertNodeBetweenLevels(int inputLevel, N node, int outputLevel)
inputLevel - the input levelnode - the node at the input leveloutputLevel - the output level