add functions cla_weight_for_path and generate_edges_weight