Remove edges from script