org.vertexium.Edge.getVertices()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(229)

本文整理了Java中org.vertexium.Edge.getVertices()方法的一些代码示例,展示了Edge.getVertices()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Edge.getVertices()方法的具体详情如下:
包路径:org.vertexium.Edge
类名称:Edge
方法名:getVertices

Edge.getVertices介绍

[英]Gets both in and out vertices of this edge.
[中]获取此边的内外顶点。

代码示例

代码示例来源:origin: org.vertexium/vertexium-core

/**
 * Gets both in and out vertices of this edge.
 */
default EdgeVertices getVertices(Authorizations authorizations) {
  return getVertices(getGraph().getDefaultFetchHints(), authorizations);
}

代码示例来源:origin: visallo/vertexium

/**
 * Gets both in and out vertices of this edge.
 */
default EdgeVertices getVertices(Authorizations authorizations) {
  return getVertices(getGraph().getDefaultFetchHints(), authorizations);
}

代码示例来源:origin: org.vertexium/vertexium-cypher

EdgeVertices edgeVertices = edge.getVertices(ctx.getFetchHints(), ctx.getAuthorizations());
switch (edgeMatchConstraint.getDirection()) {
  case BOTH:

代码示例来源:origin: visallo/vertexium

EdgeVertices edgeVertices = edge.getVertices(ctx.getFetchHints(), ctx.getAuthorizations());
switch (edgeMatchConstraint.getDirection()) {
  case BOTH:

代码示例来源:origin: visallo/vertexium

@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);
}

代码示例来源:origin: org.vertexium/vertexium-test

assertEquals(VISIBILITY_A, addedEdge.getVisibility());
EdgeVertices addedEdgeVertices = addedEdge.getVertices(AUTHORIZATIONS_A);
assertEquals(v1, addedEdgeVertices.getOutVertex());
assertEquals(v2, addedEdgeVertices.getInVertex());

代码示例来源:origin: visallo/vertexium

assertEquals(VISIBILITY_A, addedEdge.getVisibility());
EdgeVertices addedEdgeVertices = addedEdge.getVertices(AUTHORIZATIONS_A);
assertEquals(v1, addedEdgeVertices.getOutVertex());
assertEquals(v2, addedEdgeVertices.getInVertex());

相关文章