R: fix selecting vertices/edges using symbolic ids

Subsetting a subset has a strange semantics: it was subsetting
all vertices/edges instead.