public Iterable<Vertex> vertices() { ArangoDBSimpleVertexQuery query; try { query = graph.client.getVertexNeighbors( graph.getRawGraph(), vertex, propertyFilter, labels, direction, limit, count); return new ArangoDBVertexIterable(graph, query); } catch (ArangoDBException e) { return new ArangoDBVertexIterable(graph, null); } }
public Iterable<Edge> edges() { ArangoDBSimpleEdgeQuery query; try { query = graph.client.getVertexEdges( graph.getRawGraph(), vertex, propertyFilter, labels, direction, limit, count); return new ArangoDBEdgeIterable(graph, query); } catch (ArangoDBException e) { return new ArangoDBEdgeIterable(graph, null); } }
public long count() { this.count = true; long result = 0; ArangoDBSimpleEdgeQuery query; try { query = graph.client.getVertexEdges( graph.getRawGraph(), vertex, propertyFilter, labels, direction, limit, count); ArangoDBSimpleEdgeCursor cursor = query.getResult(); result = cursor.count(); } catch (ArangoDBException e) { } this.count = false; return result; }