calc_paths_eff