code: public void printAll() {
  		
  		for (Long n : vector.keySet()) {
  			DistanceElement element = vector.get(n);
  			System.out.println("Distance to node " + n + ": " + element.getDistance() + " | Previous node: " + element.getParentId());
  		}
  	}
docs: This function prints the current state of the distance vector, e.g. the nodes constituting this vector and their attributes.