public boolean hasVertexFilter() {
        return this.vertexFilter != null;
    }
Whether a vertex filter has been defined.

@return true if a vertex filter was provided.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/GraphFilter.java