NodeData - snir1551/Ex0_OOP GitHub Wiki

class NodeData is implements from interface node_data

functions of class NodeData:

  • getKey()

      this method only return us the key of this node.
    
  • getNi()

      this method return Collection of node_data interface that contains with all the Neighbor nodes of this node_data
    
  • hasNi(int key)

      this method get key of the other node_data and return true if other node by the key is neighbor of the this node_data
    
  • addNi(node_data t)

      this method get t (node_data interface) and add other node_data to this node iff other not equal to this
    
  • removeNode(node_data node)

      this method get node (node_data interface) and remove neighbor node from this node
    
  • getInfo()

      this method return String that symbolizes color of Node (help us in algorithms)
    
  • getTag()

      this method return int that symbolizes the distance from node to other node (help us in algorithms)