}
private Iterable<Edge> findEdges(final Workspace workspace, List<WorkspaceEntity> workspaceEntities, User user) {
Authorizations authorizations = userRepository.getAuthorizations(user, VISIBILITY_STRING, workspace.getWorkspaceId());
Iterable<Vertex> vertices = WorkspaceEntity.toVertices(getGraph(), workspaceEntities, authorizations);
Iterable<String> edgeIds = toSet(new VerticesToEdgeIdsIterable(vertices, authorizations));
return getGraph().getEdges(edgeIds, authorizations);
}