Class Node


  • public class Node
    extends GraphEntity
    * A class represent an node (graph entity). In addition to the base class id and properties, a node has labels.
    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • addLabel

        public void addLabel​(String label)
        Parameters:
        label - - a label to be add
      • removeLabel

        public void removeLabel​(String label)
        Parameters:
        label - - a label to be removed
      • getLabel

        public String getLabel​(int index)
        Parameters:
        index - - label index
        Returns:
        the property label
        Throws:
        IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= getNumberOfLabels())
      • getNumberOfLabels

        public int getNumberOfLabels()
        Returns:
        the number of labels