@Nullable @Override public TitanVertex apply(@Nullable TitanEdge titanEdge) { return titanEdge.getOtherVertex(other); } });
@Override public boolean evaluate(E relation) { return relation.isEdge() && ((TitanEdge) relation).getOtherVertex(baseVertex).equals(otherVertex); }
protected VertexList edges2VertexIds(final Iterable<TitanEdge> edges, final TitanVertex other) { VertexArrayList vertices = new VertexArrayList(tx); for (TitanEdge edge : edges) vertices.add(edge.getOtherVertex(other)); return vertices; }
TitanVertex n2 = r.getOtherVertex(n); int idsum = ((Number) n.getProperty(id)).intValue() + ((Number) n2.getProperty(id)).intValue(); assertEquals(idsum, r.getProperty(id));
TitanVertex n2 = r.getOtherVertex(n); int idsum = ((Number) n.getProperty(id)).intValue() + ((Number) n2.getProperty(id)).intValue(); assertEquals(idsum, r.getProperty(id));
assertEquals(partition,getPartitionID(r,idManager)); if (r instanceof TitanEdge) { TitanVertex o = ((TitanEdge)r).getOtherVertex(v); assertTrue(o.equals(g1) || o.equals(g2));