tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [1/3] tinkerpop git commit: Fixed bad sample code in docs
Date Mon, 22 May 2017 13:51:17 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/master 4f24321a1 -> 3352cceae


Fixed bad sample code in docs

vertexIdKey was removed a long long time ago. Can't even find where it was last in the API
going back to 3.0.x - that's been bad a long time...dah CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/07bca450
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/07bca450
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/07bca450

Branch: refs/heads/master
Commit: 07bca45002ca2392bd1e8ada1eed6ff29528c88d
Parents: 0e5725b
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Mon May 22 09:48:05 2017 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Mon May 22 09:48:05 2017 -0400

----------------------------------------------------------------------
 docs/src/reference/the-graph.asciidoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07bca450/docs/src/reference/the-graph.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/the-graph.asciidoc b/docs/src/reference/the-graph.asciidoc
index 09c11fa..9515cf5 100644
--- a/docs/src/reference/the-graph.asciidoc
+++ b/docs/src/reference/the-graph.asciidoc
@@ -440,7 +440,7 @@ try (final OutputStream os = new FileOutputStream("tinkerpop-modern.xml"))
{
 
 final Graph newGraph = TinkerGraph.open();
 try (final InputStream stream = new FileInputStream("tinkerpop-modern.xml")) {
-    newGraph.io(IoCore.graphml()).reader().vertexIdKey("name").create().readGraph(stream,
newGraph);
+    newGraph.io(IoCore.graphml()).reader().create().readGraph(stream, newGraph);
 }
 ----
 
@@ -507,7 +507,7 @@ try (final OutputStream os = new FileOutputStream("tinkerpop-modern.json"))
{
 
 final Graph newGraph = TinkerGraph.open();
 try (final InputStream stream = new FileInputStream("tinkerpop-modern.json")) {
-    newGraph.io(IoCore.graphson()).reader().vertexIdKey("name").create().readGraph(stream,
newGraph);
+    newGraph.io(IoCore.graphson()).reader().create().readGraph(stream, newGraph);
 }
 ----
 
@@ -719,7 +719,7 @@ try (final OutputStream os = new FileOutputStream("tinkerpop-modern.kryo"))
{
 
 final Graph newGraph = TinkerGraph.open();
 try (final InputStream stream = new FileInputStream("tinkerpop-modern.kryo")) {
-    newGraph.io(IoCore.gryo()).reader().vertexIdKey("name").create().readGraph(stream, newGraph);
+    newGraph.io(IoCore.gryo()).reader().create().readGraph(stream, newGraph);
 }
 ----
 


Mime
View raw message