removeEdge and removeData accepts string/array