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/05/26 12:55:45 UTC

[35/49] tinkerpop git commit: Fixed bad sample code in docs

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/TINKERPOP-1618
Commit: 07bca45002ca2392bd1e8ada1eed6ff29528c88d
Parents: 0e5725b
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 22 09:48:05 2017 -0400
Committer: Stephen Mallette <sp...@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);
 }
 ----