You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Dylan Millikin (JIRA)" <ji...@apache.org> on 2015/09/12 02:37:46 UTC

[jira] [Commented] (TINKERPOP3-237) Tree -> Graph

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

Dylan Millikin commented on TINKERPOP3-237:
-------------------------------------------

I think that would work.

So modifying tree would in essence result in:
{code}
gremlin> tree = g.V().out().out().tree().next()
==>v[1]={v[4]={v[3]={}, v[5]={}}}
{code}

becoming :
{code}
gremlin> tree = g.V().out().out().tree().next()
==>[v[1], [v[4], [v[3], v[5]]]]
{code}
Is that correct?

> Tree -> Graph
> -------------
>
>                 Key: TINKERPOP3-237
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-237
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process, structure
>    Affects Versions: 3.0.1-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>
> Take a {{Tree}} instance and convert it to a {{Graph}}. The graph must support user supplied ids (e.g. TinkerGraph).
> {code:java}
> myTree.toGraph(TinkerGraph.class)
> {code}



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