Interface GraphNode<K,V>

All Known Implementing Classes:
AbstractGraphNode, DirectedGraphNode, UndirectedGraphNode

public interface GraphNode<K,V>
Author:
pavlidis
  • Method Summary

    Modifier and Type
    Method
    Description
    Graph<? extends GraphNode<K,V>,K,V>
     
     
     
    void
    setItem(V value)
    Set the contents of the node.
    void
    setValue(K key, V value)
    Set the key and value associated with this node.
  • Method Details

    • getGraph

      Graph<? extends GraphNode<K,V>,K,V> getGraph()
      Returns:
      the Graph this belongs to.
    • getItem

      V getItem()
      Returns:
      the contents of the node.
    • getKey

      K getKey()
      Returns:
      the key for this node.
    • setItem

      void setItem(V value)
      Set the contents of the node.
      Parameters:
      value -
    • setValue

      void setValue(K key, V value)
      Set the key and value associated with this node.
      Parameters:
      key -
      value -