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

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

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

Edge.getOtherVertex介绍

[英]Given a vertexId that represents one side of a relationship, get me the vertex of the other side.
[中]给定一个表示关系一侧的vertexId,给我另一侧的顶点。

代码示例

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

/**
 * Given a vertexId that represents one side of a relationship, get me the vertex of the other side.
 */
default Vertex getOtherVertex(String myVertexId, Authorizations authorizations) {
  return getOtherVertex(myVertexId, getGraph().getDefaultFetchHints(), authorizations);
}

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

Vertex otherVertex = edge.getOtherVertex(startingVertex.getId(), ctx.getFetchHints(), ctx.getAuthorizations());
VertexiumCypherScope.PathItem newPath = previousPath
    .concat(name, edge)

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

Vertex otherVertex = edge.getOtherVertex(startingVertex.getId(), ctx.getFetchHints(), ctx.getAuthorizations());
VertexiumCypherScope.PathItem newPath = previousPath
    .concat(name, edge)

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

/**
 * Given a vertexId that represents one side of a relationship, get me the vertex of the other side.
 */
default Vertex getOtherVertex(String myVertexId, Authorizations authorizations) {
  return getOtherVertex(myVertexId, getGraph().getDefaultFetchHints(), authorizations);
}

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

List<String> vertexIds = new ArrayList<>();
edges.forEach(edge -> {
  if (edge.getOtherVertex(sourceVertexId, FetchHints.NONE, authorizations) != null) {
    vertexIds.add(edge.getOtherVertexId(sourceVertexId));

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

boolean foundMatch = false;
if (edge != null && previousVertex != null) {
  Vertex vertex = edge.getOtherVertex(previousVertex.getId(), ctx.getFetchHints(), ctx.getAuthorizations());
  if (vertexIsMatch(ctx, vertex, labelNames, propertiesMap, scope)
      && vertexRelationshipMatches(matchContext, matchConstraint, vertex)) {

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

boolean foundMatch = false;
if (edge != null && previousVertex != null) {
  Vertex vertex = edge.getOtherVertex(previousVertex.getId(), ctx.getFetchHints(), ctx.getAuthorizations());
  if (vertexIsMatch(ctx, vertex, labelNames, propertiesMap, scope)
      && vertexRelationshipMatches(matchContext, matchConstraint, vertex)) {

代码示例来源:origin: org.visallo/visallo-web

@Handle
  public ClientApiVertex handle(
      @Required(name = "vertexId") String vertexId,
      @Required(name = "multiValueKey") String multiValueKey,
      @ActiveWorkspaceId String workspaceId,
      User user,
      Authorizations authorizations
  ) throws Exception {
    Vertex artifactVertex = graph.getVertex(vertexId, authorizations);
    ArtifactDetectedObject artifactDetectedObject = VisalloProperties.DETECTED_OBJECT.getPropertyValue(artifactVertex, multiValueKey);
    Edge edge = graph.getEdge(artifactDetectedObject.getEdgeId(), authorizations);
    Vertex resolvedVertex = edge.getOtherVertex(artifactVertex.getId(), authorizations);

    SandboxStatus edgeSandboxStatus = SandboxStatusUtil.getSandboxStatus(edge, workspaceId);
    boolean isPublicEdge = edgeSandboxStatus == SandboxStatus.PUBLIC;

    workspaceHelper.deleteEdge(workspaceId, edge, artifactVertex, resolvedVertex, isPublicEdge, Priority.HIGH, authorizations, user);

    return (ClientApiVertex) ClientApiConverter.toClientApi(artifactVertex, workspaceId, authorizations);
  }
}

相关文章