You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/10/30 11:00:21 UTC
tinkerpop git commit: Fixed common ancestor recipe which had no result
Repository: tinkerpop
Updated Branches:
refs/heads/tp32 3303ef9db -> 9a15262bd
Fixed common ancestor recipe which had no result
The recipe was trying to get a 'name' property which didn't exist - the id of the vertex is sufficient for demonstration. CTR
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/9a15262b
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/9a15262b
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/9a15262b
Branch: refs/heads/tp32
Commit: 9a15262bd735282171381ae241f5a021d44e88f1
Parents: 3303ef9
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Oct 30 06:59:12 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Oct 30 06:59:12 2017 -0400
----------------------------------------------------------------------
docs/src/recipes/tree.asciidoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/9a15262b/docs/src/recipes/tree.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/recipes/tree.asciidoc b/docs/src/recipes/tree.asciidoc
index 08120be..b11e842 100644
--- a/docs/src/recipes/tree.asciidoc
+++ b/docs/src/recipes/tree.asciidoc
@@ -52,7 +52,7 @@ Given that graph, the following traversal will get the lowest common ancestor fo
g.V('A').
repeat(out('hasParent')).emit().as('x').
repeat(__.in('hasParent')).emit(hasId('D')).
- select('x').limit(1).values('name')
+ select('x').limit(1)
----
The above traversal is reasonably straightforward to follow in that it simply traverses up the tree from the A vertex