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

Automatic Traversal rewriting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.0.2-incubating
    • None
    • process
    • None

    Description

      Currently, Matchstep expects the pattern to be defined in terms of normalized traversals, that is, only the start and end of the traversal can be variables.
      In order to be able to write some patterns more concisely, it would be nice if something like this were allowed:

      match('a', 
            as('a').out('knows').as('b').out('knows').as('c'),
            as('c').out('knows').as('a')
      

      which could be easily decomposed into the normalized form:

      match('a', 
            as('a').out('knows').as('b'),
            as('b').out('knows').as('c'),
            as('c').out('knows').as('a')
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbroecheler Matthias Broecheler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: