[ 
https://issues.apache.org/jira/browse/TINKERPOP-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928429#comment-15928429
 ] 

ASF GitHub Bot commented on TINKERPOP-1387:
-------------------------------------------

Github user okram commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/574#discussion_r106472426
  
    --- Diff: 
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
 ---
    @@ -1034,11 +1034,10 @@
          * @param toStepLabel the step label of the incoming vertex
          * @return the traversal with the modified {@link AddEdgeStep}
          * @since 3.1.0-incubating
    -     * @see <a 
href="http://tinkerpop.apache.org/docs/${project.version}/reference/#addedge-step";
 target="_blank">Reference Documentation - AddEdge Step</a>
          */
         public default GraphTraversal<S, E> to(final String toStepLabel) {
             this.asAdmin().getBytecode().addStep(Symbols.to, toStepLabel);
    -        ((AddEdgeStep) 
this.asAdmin().getEndStep()).addTo(__.select(toStepLabel));
    +        ((FromToModulating) 
this.asAdmin().getEndStep()).addTo(toStepLabel);
    --- End diff --
    
    There is nothing to `@see` as it doesn't reference `AddEdgeStep` anymore.


> from and to modulators for path steps
> -------------------------------------
>
>                 Key: TINKERPOP-1387
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1387
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.2.1
>            Reporter: Daniel Kuppitz
>            Assignee: Marko A. Rodriguez
>
> Just had this crazy idea of {{from}} and {{to}} modulators for path steps.
> {code}
> 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")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to