}
Iterable<Vertex> vertices = graph.getVertex(graphVertexId, authorizations)
.getVertices(Direction.BOTH, authorizations);
ClientApiVertexFindRelatedResponse result = new ClientApiVertexFindRelatedResponse();
long count = 0;
for (Vertex vertex : vertices) {
if (limitConceptIds.size() == 0 || !isLimited(limitConceptIds, vertex)) {
if (count < maxVerticesToReturn) {
result.getVertices().add(ClientApiConverter.toClientApiVertex(vertex, workspaceId, authorizations));
}
count++;
}
}
result.setCount(count);
respondWithClientApiObject(response, result);
}