g.createVertexType("Profile");
if (g.getEdgeType("Friend") == null) {
final OrientEdgeType f = g.createEdgeType("Friend");
f.createProperty("in", OType.LINK);
f.createProperty("out", OType.LINK);
f.createIndex("Friend.in_out", OClass.INDEX_TYPE.UNIQUE, "in", "out");
}
OrientVertex luca = g.addVertex("class:Profile", "name", "Luca");
OrientVertex jay = g.addVertex("class:Profile", "name", "Jay");