Class AbstractGeneratorTest
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.AbstractGremlinTest
-
- org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGeneratorTest
-
- Direct Known Subclasses:
CommunityGeneratorTest.DifferentDistributionsTest
,DistributionGeneratorTest.DifferentDistributionsTest
public class AbstractGeneratorTest extends AbstractGremlinTest
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
config, g, graph, graphProvider, name, shouldTestIteratorLeak
-
-
Constructor Summary
Constructors Constructor Description AbstractGeneratorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
same(Graph g1, Graph g2)
Asserts that two graphs are the "same" in way of structure.-
Methods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
afterLoadGraphWith, assertVertexEdgeCounts, beforeLoadGraphWith, convertToEdge, convertToEdge, convertToEdgeId, convertToEdgeId, convertToVertex, convertToVertex, convertToVertexId, convertToVertexId, convertToVertexProperty, convertToVertexProperty, convertToVertexPropertyId, convertToVertexPropertyId, getAssertVertexEdgeCounts, printTraversalForm, setup, tearDown, tryCommit, tryCommit, tryRollback, validateException, verifyRootIdentification, verifyUniqueStepIds
-
-
-
-
Method Detail
-
same
protected boolean same(Graph g1, Graph g2)
Asserts that two graphs are the "same" in way of structure. It assumes that the graphs both have vertices with an "oid" property that is an Integer value. It iterates each vertex in graph 1, using the "oid" to lookup vertices in graph 2. For each one found it checks both IN and OUT vertices to ensure that they attach to the same IN/OUT vertices given their "oid" properties.
-
-