[
https://issues.apache.org/jira/browse/TINKERPOP-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15262329#comment-15262329
]
Daniel Kuppitz commented on TINKERPOP-1280:
-------------------------------------------
{quote}
Ah... Are you using traversers in {{program()?}} If so, can you give an example
of your usage ...
{quote}
I don't think I should share DSE code here, but yes, I'm accessing the
traversers path information within the {{VertexProgram}}. For example:
{code}
g.V().as("a").in("is").in("contains").out("contains").out("is").program(vp)
// vp cannot access "a"
g.V().as("a").in("is").in("contains").out("contains").out("is").where(neq("a")).program(vp)
// vp can access "a"
{code}
> VertexPrograms should declare traverser requirements
> ----------------------------------------------------
>
> Key: TINKERPOP-1280
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1280
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.0-incubating
> Reporter: Daniel Kuppitz
>
> VertexPrograms should declare their {{TraverserRequirement}} which can then
> be propagated by the {{program()}} step. Most VPs (at least the ones I have
> written so far) rely on (labeled) path information and thus will fail if the
> actual traversal doesn't use any other steps with the same traverser
> requirements. I keep running into this issue whenever I write a new VP.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)