Class SlowNumberedNodeManager<T>

    • Constructor Detail

      • SlowNumberedNodeManager

        public SlowNumberedNodeManager()
    • Method Detail

      • iterator

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

        public int getNumberOfNodes()
        Specified by:
        getNumberOfNodes in interface NodeManager<T>
        Returns:
        the number of nodes in this graph
      • addNode

        public void addNode​(T n)
        Description copied from interface: NodeManager
        add a node to this graph
        Specified by:
        addNode in interface NodeManager<T>
      • removeNode

        public void removeNode​(T n)
        Description copied from interface: NodeManager
        remove a node from this graph
        Specified by:
        removeNode in interface NodeManager<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • containsNode

        public boolean containsNode​(T N)
        Specified by:
        containsNode in interface NodeManager<T>
        Returns:
        true iff the graph contains the specified node