find_min_edge added