Titan is a native implementation of Blueprints and thus returns a Blueprints Vertex
object and therefore the reason why you don't get back a TitanVertex
. Note that TitanVertex
implements Blueprints Vertex
:
http://thinkaurelius.github.io/titan/javadoc/0.4.2/com/thinkaurelius/titan/core/TitanVertex.html
so you should be able to cast Vertex
to TitanVertex
.
TitanVertex v = (TitanVertex) g.getVertex(...)