Generalized Vertex support - Vertex can be represented as number, string or any object. If its an object, an objectid property or function should be specified to identify the vertex