Add vertex_set and vertex_dict methods, to be overridden by subclasses.