Class GraphParams<E>

    • Constructor Detail

      • GraphParams

        public GraphParams​(E previousNode,
                           E curNode,
                           double previousDistance)
        Constructs this GraphParams object holding the specified values.
        Parameters:
        previousNode - the previous node
        currentNode - the current node
        previousDistance - the previous distance that has been traversed
    • Method Detail

      • getCurrentNode

        public E getCurrentNode()
        Retrieves the current node in the graph execution.
        Returns:
        the current node in the graph execution
      • getPreviousNode

        public E getPreviousNode()
        Retrieves the previous node in the graph execution.
        Returns:
        the previous node in the graph execution
      • getPreviousDistance

        public double getPreviousDistance()
        Retrieves the sum of the previous distances in the graph execution.
        Returns:
        the sum of the previous distances in the graph execution