:plugin use tinkerpop.hadoop
:plugin use tinkerpop.spark
// I edited the keyspace in this file to github_graph
olap_graph = JanusGraphFactory.build().
set("storage.backend", "cassandra").
set("storage.hostname", "127.0.0.1").
set("storage.cassandra.keyspace", "github_graph").
open()
// Get a graph traverser
olap_g = olap_graph.traversal().withComputer(SparkGraphComputer)
// Test things out with a vertex count
// assert(olap_g.V().count().next() == 8139595)
// Add co-forked edges between nodes
edgePairs = olap_g.V().\
hasLabel('repo').\
as('repo1').\
in('forked').\
out('forked').\
where(without('x')).\
as('repo2')