I have added the Es to the calculate_rank, calculate_path_cost, and
rp.h|dag structure.