if(type.equals(RedisElementType.TYPE.REDIS_ELEMENT_VERTEX)){
el = new RedisVertex(id, graph);
}
else{
el = new RedisEdge(id, graph);
if(null != this.label && !((RedisEdge)el).getLabel().equals(this.label)){
el = null;
while(true && this.currentElementIndex < this.elementCount){
this.currentElementIndex++;
db_vertices = db.zrange(elementCollectionKey, this.currentElementIndex, this.currentElementIndex);
id = Long.parseLong(new String(db_vertices.get(0)));
el = new RedisEdge(id, graph);
if(((RedisEdge)el).getLabel().equals(this.label)){
break;
}
}
}