add preliminary collapse_edge method