Indexing vertex id