Interface NodeManager<T>

    • Method Detail

      • iterator

        java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
        Returns:
        an Iterator of the nodes in this graph
      • getNumberOfNodes

        int getNumberOfNodes()
        Returns:
        the number of nodes in this graph
      • addNode

        void addNode​(T n)
        add a node to this graph
      • removeNode

        void removeNode​(T n)
                 throws java.lang.UnsupportedOperationException
        remove a node from this graph
        Throws:
        java.lang.UnsupportedOperationException
      • containsNode

        boolean containsNode​(T n)
        Returns:
        true iff the graph contains the specified node