correctly remove some nodes from graph in beabi, thus avoiding bad outedges