/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(Authorizations authorizations) { return getVertices(getGraph().getDefaultFetchHints(), authorizations); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(Authorizations authorizations) { return getVertices(getGraph().getDefaultFetchHints(), authorizations); }
EdgeVertices edgeVertices = edge.getVertices(ctx.getFetchHints(), ctx.getAuthorizations()); switch (edgeMatchConstraint.getDirection()) { case BOTH:
EdgeVertices edgeVertices = edge.getVertices(ctx.getFetchHints(), ctx.getAuthorizations()); switch (edgeMatchConstraint.getDirection()) { case BOTH:
@Test(expected = VertexiumNotSupportedException.class) public void testRetrievingVerticesFromElasticsearchEdge() { graph.addVertex("v1", VISIBILITY_A, AUTHORIZATIONS_A); graph.addVertex("v2", VISIBILITY_A, AUTHORIZATIONS_A); graph.addEdge("e1", "v1", "v2", LABEL_LABEL1, VISIBILITY_A, AUTHORIZATIONS_A); graph.flush(); QueryResultsIterable<Edge> edges = graph.query(AUTHORIZATIONS_A) .edges(FetchHints.NONE); assertResultsCount(1, 1, edges); toList(edges).get(0).getVertices(AUTHORIZATIONS_A); }
assertEquals(VISIBILITY_A, addedEdge.getVisibility()); EdgeVertices addedEdgeVertices = addedEdge.getVertices(AUTHORIZATIONS_A); assertEquals(v1, addedEdgeVertices.getOutVertex()); assertEquals(v2, addedEdgeVertices.getInVertex());
assertEquals(VISIBILITY_A, addedEdge.getVisibility()); EdgeVertices addedEdgeVertices = addedEdge.getVertices(AUTHORIZATIONS_A); assertEquals(v1, addedEdgeVertices.getOutVertex()); assertEquals(v2, addedEdgeVertices.getInVertex());