public interface ComparableNode extends Element, java.lang.Comparable<ComparableNode>
Modifier and Type | Method and Description |
---|---|
int |
getCompareToIndex()
Returns the index of the node (only used internal by compareTo).
|
java.util.SortedSet<Edge> |
getIncomingSecondaryEdges()
Returns a sorted set of incoming secondary edges.
|
int |
getInDegree()
Returns the in degree of the node (number of incoming edges of all types of edges).
|
int |
getIndex()
Returns the index of the node.
|
ComparableNode |
getLeftmostDescendant()
Returns the left-most terminal descendant node.
|
int |
getLeftmostDescendantIndex()
Returns the index of the left-most terminal descendant node.
|
ComparableNode |
getLeftmostProperDescendant()
Returns the left-most proper terminal descendant node (excluding itself).
|
int |
getLeftmostProperDescendantIndex()
Returns the index of the left-most proper terminal descendant node (excluding itself).
|
int |
getOutDegree()
Returns the out degree of the node (number of outgoing edges of all types of edges).
|
java.util.SortedSet<Edge> |
getOutgoingSecondaryEdges()
Returns a sorted set of outgoing secondary edges.
|
ComparableNode |
getRightmostDescendant()
Returns the right-most terminal descendant node.
|
int |
getRightmostDescendantIndex()
Returns the index of the right-most terminal descendant node.
|
ComparableNode |
getRightmostProperDescendant()
Returns the right-most proper terminal descendant node (excluding itself).
|
int |
getRightmostProperDescendantIndex()
Returns the index of the right-most proper terminal descendant node (excluding itself).
|
boolean |
isRoot()
Returns true if the node is a root node, otherwise false.
|
addLabel, addLabel, addLabel, clear, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph
int getIndex()
int getCompareToIndex()
boolean isRoot()
ComparableNode getLeftmostProperDescendant() throws MaltChainedException
MaltChainedException
ComparableNode getRightmostProperDescendant() throws MaltChainedException
MaltChainedException
int getLeftmostProperDescendantIndex() throws MaltChainedException
MaltChainedException
int getRightmostProperDescendantIndex() throws MaltChainedException
MaltChainedException
ComparableNode getLeftmostDescendant() throws MaltChainedException
MaltChainedException
ComparableNode getRightmostDescendant() throws MaltChainedException
MaltChainedException
int getLeftmostDescendantIndex() throws MaltChainedException
MaltChainedException
int getRightmostDescendantIndex() throws MaltChainedException
MaltChainedException
int getInDegree()
int getOutDegree()
java.util.SortedSet<Edge> getIncomingSecondaryEdges() throws MaltChainedException
MaltChainedException
java.util.SortedSet<Edge> getOutgoingSecondaryEdges() throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.