Module logicng

Class Node<T>

  • Type Parameters:
    T - the element type of the node

    public final class Node<T>
    extends Object
    A generic node of a graph.
    Since:
    1.2
    Version:
    2.0.0
    • Method Detail

      • content

        public T content()
        Returns the content of the node.
        Returns:
        the content of the node
      • neighbours

        public Set<Node<T>> neighbours()
        Returns the neighbours of the node.
        Returns:
        the neighbours of the node
      • graph

        public Graph<T> graph()
        Returns the graph to which the node belongs.
        Returns:
        the node's graph
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object