This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :remote config alias reset | |
| //system.graph("addresses").drop() | |
| system.graph("addresses").create() | |
| :remote config alias g addresses.g | |
| :remote config timeout max | |
| address_types = [ | |
| // type : single |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.tinkerpop.gremlin.process.traversal.Path; | |
| import org.apache.tinkerpop.gremlin.process.traversal.Traversal; | |
| import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal; | |
| import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource; | |
| import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__; | |
| import org.apache.tinkerpop.gremlin.process.traversal.util.TraversalHelper; | |
| import org.apache.tinkerpop.gremlin.structure.T; | |
| import org.apache.tinkerpop.gremlin.structure.Vertex; | |
| import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == ITERATION 1 == | |
| Got vertex for active state: v[4184] with state: vp[state->active] | |
| Did not get vertex for active state after setting state to deleted. | |
| Got vertex for deleted state: v[4184] with state: vp[state->deleted] | |
| == ITERATION 2 == | |
| Got vertex for active state: v[4328] with state: vp[state->active] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == ITERATION 1 == | |
| Got vertex for active state: v[256] with state: active | |
| Got vertex for active state after setting state to deleted: v[256] with state: deleted | |
| Got vertex for deleted state: v[256] with state: deleted | |
| == ITERATION 2 == | |
| Got vertex for active state: v[256] with state: active |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| daniel@cube /projects/aurelius/titan (titan10) $ cat > /tmp/out_edges.txt << EOF | |
| > 1,2 | |
| > 2,3 | |
| > EOF | |
| daniel@cube /projects/aurelius/titan (titan10) $ bin/gremlin.sh | |
| \,,,/ | |
| (o o) | |
| -----oOOo-(3)-oOOo----- | |
| plugin activated: aurelius.titan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource; | |
| import org.apache.tinkerpop.gremlin.structure.Vertex; | |
| import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Random; | |
| import java.util.function.Supplier; | |
| import java.util.function.UnaryOperator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| graph = TinkerGraph.open() | |
| graph.createIndex("name", Vertex.class) | |
| g = graph.traversal() | |
| // Query 1 | |
| person1 = graph.addVertex(label, 'person', 'name', 'Michael Sherman') | |
| person2 = graph.addVertex(label, 'person', 'name', 'Zoltan Varju') | |
| person3 = graph.addVertex(label, 'person', 'name', 'Peter Neubauer') | |
| person4 = graph.addVertex(label, 'person', 'name', 'Grace Andrews') | |
| person5 = graph.addVertex(label, 'person', 'name', 'Michael Hunger') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:trusty | |
| COPY run.sh /tmp/run.sh | |
| ENV TITAN_VER titan-0.5.4-hadoop2 | |
| RUN apt-get update -y | |
| RUN apt-get purge -y openjdk* | |
| RUN apt-get install -y software-properties-common python-software-properties | |
| RUN add-apt-repository ppa:webupd8team/java |