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)
  • Constructor Details

    • AbstractGeneratorTest

      public AbstractGeneratorTest()
  • Method Details

    • 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.