You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2015/11/16 19:29:11 UTC

[jira] [Created] (TINKERPOP3-963) SubgraphTraversalAnalyzer to determine what is really required from a traversal.

Marko A. Rodriguez created TINKERPOP3-963:
---------------------------------------------

             Summary: SubgraphTraversalAnalyzer to determine what is really required from a traversal.
                 Key: TINKERPOP3-963
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-963
             Project: TinkerPop 3
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.1.0-incubating
            Reporter: Marko A. Rodriguez
            Assignee: Marko A. Rodriguez


This idea is dependent on the work in TINKERPOP3-962 being complete.

The idea is that there should be a {{SubgraphTraversalAnalyzer}}-type step that for a {{traversal}} returns a {{Pair<Traversal<Vertex,Vertex>,Traversal<Edge,Edge>>}} that defines two "filters" that contain the subgraph that the traversal will execute in.

For instance.

{code}
g.V().hasLabel("person").out("pets").hasLabel("dog")
{code}

{{SubgraphTraversalAnalyzer}} would return

{code}
Pair.with(
  hasLabel("person","dog"),
  hasLabel("pets"))
{code}

The difficulty with this ticket is that TinkerPop does NOT make any assumptions about a schema. For instance, if the user did this:

{code}
g.V().hasLabel("person").out("pets")
{code}

Then the best we could return is:

{code}
Pair.with(
  identity(),
  hasLabel("pets"))
{code}

cc/ [~mbroecheler]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)