fixed faulty remove_edge from topo