org.apache.giraph.graph.Vertex.setEdges()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(128)

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

Vertex.setEdges介绍

[英]Set the outgoing edges for this vertex.
[中]设置该顶点的输出边。

代码示例

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

@Override
public boolean hasNext() {
 // If the current edge is not null,
 // we need to add it to the new edges.
 Edge<I, E> currentEdge = mutableEdgesWrapper.getCurrentEdge();
 if (currentEdge != null) {
  newEdges.add(currentEdge);
  mutableEdgesWrapper.setCurrentEdge(null);
 }
 if (!oldEdgesIterator.hasNext()) {
  vertex.setEdges(newEdges);
  return false;
 } else {
  return true;
 }
}

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

MutableEdgesWrapper.wrap((OutEdges<I, E>) vertex.getEdges(),
    vertex.getConf());
vertex.setEdges(mutableEdgesWrapper);

代码示例来源:origin: apache/giraph

vertex.setValue(value);
vertex.setEdges((Iterable) WritableUtils.createCopy(
  (Writable) vertex.getEdges(), conf.getOutEdgesClass(), conf));

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

readerVertex.setEdges(vertexOutEdges);

相关文章