Implemented node-edge distance component for postprocessing phase