Keeping vertices and edges separately