/** * Clears the predecessor list and sets the distance to zero. */ @Override public void setSource() { // Clear the predecessor list. super.clear(); // Set the distance to zero. distance = 0; } }
/** * Clears the predecessor list and resets the distance to the default * distance. */ @Override public void reset() { // Clear the predecessor list. super.clear(); // Reset the distance to the default distance. distance = DEFAULT_DISTANCE; }
/** * Clears the predecessor list and resets the distance to the default * distance. */ @Override public void reset() { // Clear the predecessor list. super.clear(); // Reset the distance to the default distance. distance = DEFAULT_DISTANCE; }
/** * Clears the predecessor list and sets the distance to zero. */ @Override public void setSource() { // Clear the predecessor list. super.clear(); // Set the distance to zero. distance = 0.0; } }