Package com.tinkerpop.furnace.generators

Examples of com.tinkerpop.furnace.generators.PowerLawDistribution


            degreeSum-=n.nextValue(random);
        }
        assertEquals(0,degreeSum);

        //scale free
        n = new PowerLawDistribution(2.9);
        n = n.initialize(numNodes,numEdges);
        degreeSum = 0;
        for (int i=0;i<numNodes;i++) {
            int degree=n.nextValue(random);
            //System.out.println(degree);
View Full Code Here


    public void testGeneratorNormal2() {
        distributionGeneratorTest(new NormalDistribution(2), new NormalDistribution(5));
    }

    public void testGeneratorScaleFree1() {
        distributionGeneratorTest(new PowerLawDistribution(2.9), null);
    }
View Full Code Here

    public void testGeneratorScaleFree1() {
        distributionGeneratorTest(new PowerLawDistribution(2.9), null);
    }

    public void testGeneratorScaleFree2() {
        distributionGeneratorTest(new PowerLawDistribution(2.1), null);
    }
View Full Code Here

    public void testGeneratorScaleFree2() {
        distributionGeneratorTest(new PowerLawDistribution(2.1), null);
    }

    public void testGeneratorScaleFree3() {
        distributionGeneratorTest(new PowerLawDistribution(3.9), null);
    }
View Full Code Here

    public void testGeneratorScaleFree3() {
        distributionGeneratorTest(new PowerLawDistribution(3.9), null);
    }

    public void testGeneratorScaleFree4() {
        distributionGeneratorTest(new PowerLawDistribution(2.3), new PowerLawDistribution(2.8));
    }
View Full Code Here

TOP

Related Classes of com.tinkerpop.furnace.generators.PowerLawDistribution

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.