class GetGraphFrameOfElements implements
        Output<GraphFrame>,
        GraphFilters {

    @Override
    public ValidationResult validate() {
        final ValidationResult result = Output.super.validate();

        if (result.isValid() && !view.hasEdges() && !view.hasEntities()) {
            result.addError("Cannot create a GraphFrame unless the View contains edges or entities.");
        }

        return result;
    }

    public  GetGraphFrameOfElements();

}