You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/01/12 22:10:57 UTC

[10/15] incubator-tinkerpop git commit: Match Gryo Reader edge traversal direction to that of StarGraph

Match Gryo Reader edge traversal direction to that of StarGraph


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

Branch: refs/heads/master
Commit: 6399d19b293f9658a607e9e0d18a31a4256f3b20
Parents: 7578c60
Author: Benjamin Han <be...@siftsec.com>
Authored: Fri Dec 11 16:47:35 2015 -0800
Committer: Benjamin Han <be...@siftsec.com>
Committed: Fri Dec 11 16:47:35 2015 -0800

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/6399d19b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
index 084b4df..d457ffb 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
@@ -93,7 +93,7 @@ public final class GryoReader implements GraphReader {
                 graphToWriteTo.tx().commit();
             return v;
         }, null, null));
-        cache.entrySet().forEach(kv -> kv.getKey().edges(Direction.OUT).forEachRemaining(e -> {
+        cache.entrySet().forEach(kv -> kv.getKey().edges(Direction.IN).forEachRemaining(e -> {
             // can't use a standard Attachable attach method here because we have to use the cache for those
             // graphs that don't support userSuppliedIds on edges. note that outVertex/inVertex methods return
             // StarAdjacentVertex whose equality should match StarVertex.