Package com.tinkerpop.gremlin.algorithm.generator

Examples of com.tinkerpop.gremlin.algorithm.generator.DistributionGenerator


                ids.add(v.id());
            }

            final Distribution inDist = new PowerLawDistribution(2.3);
            final Distribution outDist = new PowerLawDistribution(2.8);
            final DistributionGenerator generator = DistributionGenerator.build(g)
                    .label("knows")
                    .seedGenerator(r::nextLong)
                    .outDistribution(outDist)
                    .inDistribution(inDist)
                    .expectedNumEdges(numVertices * 3).create();
            generator.generate();
        }
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.algorithm.generator.DistributionGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.