get_edge_score corrected