Class AbstractGraphNode<K,​V>

    • Field Detail

      • item

        protected V item
      • key

        protected K key
      • visited

        protected boolean visited
    • Constructor Detail

      • AbstractGraphNode

        public AbstractGraphNode​(K key)
        Create a new node when given only a key.
        Parameters:
        key -
      • AbstractGraphNode

        public AbstractGraphNode​(K key,
                                 V value)
    • Method Detail

      • getItem

        public V getItem()
        Get the actual contents of the node.
        Specified by:
        getItem in interface GraphNode<K,​V>
        Returns:
      • getKey

        public K getKey()
        Get the key for the node.
        Specified by:
        getKey in interface GraphNode<K,​V>
        Returns:
        Object
      • setItem

        public void setItem​(V value)
        Description copied from interface: GraphNode
        Set the contents of the node.
        Specified by:
        setItem in interface GraphNode<K,​V>
      • setValue

        public void setValue​(K key,
                             V value)
        Description copied from interface: GraphNode
        Set the key and value associated with this node.
        Specified by:
        setValue in interface GraphNode<K,​V>