Github user spmallette commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/574#discussion_r106496036
--- 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 --
Doing it that way works as well. That was probably smart now that those
steps apply to more than just `addEdge()`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---