Marko A. Rodriguez created TINKERPOP-1293: ---------------------------------------------
Summary: Implement GraphFilterStrategy as a default registration for GraphComputer Key: TINKERPOP-1293 URL: https://issues.apache.org/jira/browse/TINKERPOP-1293 Project: TinkerPop Issue Type: Improvement Components: process Affects Versions: 3.2.0-incubating Reporter: Marko A. Rodriguez Fix For: 3.2.1 {{GraphFilterStrategy}} would be a {{TraversalStrategy}} for {{GraphComputer}}s. It will inspect the {{Traversal}} and decide the {{computer.vertices(...).edges(...)}} to use. Some rules: 1. If the traversal is part of an OLAP chain, don't apply strategy. 2. If the traversal is persist edges, then don't {{edges(...)}} or {{vertices(...)}}. 3. If the traversal is persist vertex properties, then don't do {{vertices(...)}}. Shouldn't be too difficult. Basically looking for: 1. {{VertexStep}} labels for edges. 2. {{HasStep}} containers for vertices and edges. >From there, we can get fancy with {{outE().has("stars",gt(4))}}-style >{{edges(...)}}. However, basic element-label based filtering should be easy. -- This message was sent by Atlassian JIRA (v6.3.4#6332)