You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2015/06/03 02:12:32 UTC
[27/50] [abbrv] incubator-tinkerpop git commit: Config the crew to be
defaulted to list cardinality.
Config the crew to be defaulted to list cardinality.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/e4a4d52c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/e4a4d52c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/e4a4d52c
Branch: refs/heads/preprocessor
Commit: e4a4d52c93a1db79d0a0ce98a7ce3763b8fd10fc
Parents: 3e4d700
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri May 29 16:40:14 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri May 29 16:41:11 2015 -0400
----------------------------------------------------------------------
.../tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/e4a4d52c/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java
----------------------------------------------------------------------
diff --git a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java
index 04e03eb..459a207 100644
--- a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java
+++ b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerFactory.java
@@ -87,7 +87,9 @@ public final class TinkerFactory {
}
public static TinkerGraph createTheCrew() {
- final TinkerGraph g = TinkerGraph.open();
+ final Configuration conf = new BaseConfiguration();
+ conf.setProperty(TinkerGraph.CONFIG_DEFAULT_VERTEX_PROPERTY_CARDINALITY, VertexProperty.Cardinality.list.name());
+ final TinkerGraph g = TinkerGraph.open(conf);
generateTheCrew(g);
return g;
}