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

from and to modulators for path steps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.5
    • process
    • None

    Description

      Just had this crazy idea of from and to modulators for path steps.

      g.V(1).as("a").
        repeat(both("knows").simplePath().from("a")).emit().out("created").as("p").in("created").
        repeat(both("knows").simplePath().from("p")).emit(hasId(6)).out("created").as("b").
        path().from("a").to("p").as("pathFromMarkoToProject").
        path().from("p").to("b").as("pathFromProjectToPeter").
        match(
          __.as("pathFromMarkoToProject").count(local).is(lte(3)),
          __.as("pathFromProjectToPeter").count(local).is(lte(3))
        ).select("p", "pathFromMarkoToProject", "pathFromProjectToPeter")
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: