public boolean hasEdgeFilter() {
        return this.edgeFilter != null;
    }
Whether an edge filter has been defined.

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