v2 = getV(tx2, v2id); assertEquals(222.2, v2.<Float>value("weight").doubleValue(), 0.01); v2.remove(); tx2.commit();
newTx(); vs[2] = tx.getVertex(vs[2].getLongId()); vs[2].remove(); vs[3] = tx.getVertex(vs[3].getLongId()); vs[3].setProperty("name","Bad Boy Badsy");
TitanTransaction propDeleter = graph.newTransaction(); getV(vertexDeleter, id).remove(); if (null == updatedValue) getV(propDeleter, id).property(propName).remove();
v3.remove(); tx.commit();
assertCount(1, v1.query().direction(BOTH).edges()); assertCount(1, v2.query().direction(Direction.BOTH).edges()); v2.remove(); assertCount(0, v1.query().direction(Direction.BOTH).edges()); try {
v3 = getOnlyElement(v21.query().direction(Direction.OUT).labels("link").vertices()); assertFalse(v3.isRemoved()); v3.remove(); newTx(); v21 = getV(tx, v21);
getV(tx, v13).remove(); assertCount(1, v.query().direction(Direction.BOTH).labels("link").edges());
getVertex("uid", i).remove();
v2 = tx2.getVertex(v2id); assertEquals(222.2,v2.<Decimal>getProperty("weight").doubleValue(),0.0); v2.remove(); tx2.commit();
getVertex("uid", i).remove();
tx.getVertex("uid", i).remove();
v3 = (TitanVertex) Iterables.getOnlyElement(v21.getVertices(OUT, "link")); assertFalse(v3.isRemoved()); v3.remove(); newTx(); v21 = tx.getVertex(v21.getID());
v3 = (TitanVertex) Iterables.getOnlyElement(v21.getVertices(OUT, "link")); assertFalse(v3.isRemoved()); v3.remove(); newTx(); v21 = tx.getVertex(v21.getLongId());