Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1293

Implement GraphFilterStrategy as a default registration for GraphComputer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.2.0-incubating
    • 3.2.1
    • process
    • None

    Description

      GraphFilterStrategy would be a TraversalStrategy for GraphComputers. 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.

      Attachments

        Activity

          People

            okram Marko A. Rodriguez
            okram Marko A. Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: