Groups of vertices or cells

Why wouldn’t you use a hashmap or map to create sets indicating membership? Of course the particulars depend on programming language, application needs, etc.