Java Vertex and Graph migration to more flexible structure