@Override
    public Distribution initialize(final int invocations, final int expectedTotal) {
        double multiplier = expectedTotal / ((gamma - 1) / (gamma - 2) * invocations) * 2; //times two because we are generating stubs
        assert multiplier > 0;
        return new PowerLawDistribution(gamma, multiplier);
    }
Constructs a new scale-free distribution for the provided gamma value.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/algorithm/generator/PowerLawDistribution.java