Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
3.2.5
-
None
-
None
Description
Consider the following:
gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(1).repeat(out()).emit().tree()
==>[v[1]:[v[2]:[],v[3]:[],v[4]:[v[3]:[],v[5]:[]]]]
gremlin> g.V(1).repeat(out()).emit().tree().by(label)
==>[person:[software:[],person:[software:[]]]]
gremlin> g.V(1).repeat(out()).emit().tree().by("name")
==>[marko:[vadas:[],josh:[ripple:[],lop:[]],lop:[]]]
Since Tree extends HashMap we end up with keys having to be unique and when they aren't we lose some of the tree structure.
Attachments
Issue Links
- relates to
-
TINKERPOP-1684 Improper results with union() in a by()
- Closed
-
TINKERPOP-1374 Consider making Tree an interface
- Open
- supercedes
-
TINKERPOP-1710 Add a note on tree() by-modulation and uniqueness of tree branches.
- Closed