本文整理了Java中org.apache.giraph.graph.Vertex.setEdges()
方法的一些代码示例,展示了Vertex.setEdges()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vertex.setEdges()
方法的具体详情如下:
包路径:org.apache.giraph.graph.Vertex
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!