public static TitanVertex getV(TitanGraphTransaction g, Object vid) { if (!g.vertices(vid).hasNext()) return null; return (TitanVertex) g.vertices(vid).next(); }
public static TitanEdge getE(TitanGraphTransaction g, Object eid) { if (!g.edges(eid).hasNext()) return null; return (TitanEdge) g.edges(eid).next(); }
public static void assertMissing(TitanGraphTransaction g, Object vid) { assertFalse(g.vertices(vid).hasNext()); }