private void distributionGeneratorTest(Distribution indist, Distribution outdist) {
int numNodes = 100;
TinkerGraph graph = new TinkerGraph();
for (int i=0;i<numNodes;i++) graph.addVertex(i);
DistributionGenerator generator = new DistributionGenerator("knows");
generator.setOutDistribution(indist);
if (outdist!=null) generator.setOutDistribution(outdist);
int numEdges = generator.generate(graph,numNodes*10);
assertEquals(numEdges, SizableIterable.sizeOf(graph.getEdges()));
System.out.println(graph);
// for (Vertex v : graph.getVertices()) System.out.print(SizableIterable.sizeOf(v.getEdges(Direction.BOTH,"knows"))+",");
// System.out.println();
}