本文整理了Java中org.vertexium.Graph.getVerticesInRange()
方法的一些代码示例,展示了Graph.getVerticesInRange()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.getVerticesInRange()
方法的具体详情如下:
包路径:org.vertexium.Graph
类名称:Graph
方法名:getVerticesInRange
[英]Gets vertices from the graph in the given range.
[中]从图形中获取给定范围内的顶点。
代码示例来源:origin: org.visallo/visallo-core
public void reindexVertices(Range range, int batchSize, Authorizations authorizations) {
Iterable<Vertex> vertices = graph.getVerticesInRange(range, FETCH_HINTS, authorizations);
reindexElements(vertices, batchSize, authorizations);
}
代码示例来源:origin: org.vertexium/vertexium-test
@Test
public void testGetVerticesInRange() {
graph.addVertex("a", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("aa", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("az", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("b", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.flush();
List<Vertex> vertices = toList(graph.getVerticesInRange(new Range(null, "a"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices);
vertices = toList(graph.getVerticesInRange(new Range(null, "b"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az");
vertices = toList(graph.getVerticesInRange(new Range(null, "bb"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az", "b");
vertices = toList(graph.getVerticesInRange(new Range(null, null), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az", "b");
}
代码示例来源:origin: visallo/vertexium
@Test
public void testGetVerticesInRange() {
graph.addVertex("a", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("aa", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("az", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.addVertex("b", VISIBILITY_EMPTY, AUTHORIZATIONS_ALL);
graph.flush();
List<Vertex> vertices = toList(graph.getVerticesInRange(new Range(null, "a"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices);
vertices = toList(graph.getVerticesInRange(new Range(null, "b"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az");
vertices = toList(graph.getVerticesInRange(new Range(null, "bb"), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az", "b");
vertices = toList(graph.getVerticesInRange(new Range(null, null), AUTHORIZATIONS_ALL));
assertVertexIds(vertices, "a", "aa", "az", "b");
}
内容来源于网络,如有侵权,请联系作者删除!