Skip to content

Instantly share code, notes, and snippets.

@okram
Created December 15, 2013 20:31
Show Gist options
  • Save okram/7977744 to your computer and use it in GitHub Desktop.
Save okram/7977744 to your computer and use it in GitHub Desktop.
public void testBulkEdgeDerivations() throws Exception {
TitanGraph g = generateTitanGraph();
bulkLoadGraphOfTheGods();
FaunusGraph f = generateFaunusGraph(TitanCassandraOutputFormat.class.getResourceAsStream("cassandra-cassandra.properties"));
new FaunusPipeline(f).V().as("x").out("father").out("father").linkIn("grandfather", "x").submit();
assertEquals(12, new GremlinPipeline(g).V().count());
assertEquals(18, new GremlinPipeline(g).E().count());
assertTrue(PipeHelper.areEqual(
new GremlinPipeline(g).V("name", "hercules").out("father").out("father"),
new GremlinPipeline(g).V("name", "hercules").out("grandfather")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment