All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.graphs.impl.tests.BijectionGenerator Maven / Gradle / Ivy

There is a newer version: 0.71.2
Show newest version
package cdc.graphs.impl.tests;

public class BijectionGenerator {
    public BijectionGenerator() {
        super();
    }

    public > void fill(TestGraph graph,
                                                                 int size) {
        for (int index = 0; index < size; index++) {
            final N source = graph.getOrCreateNode("S" + index);
            final N target = graph.getOrCreateNode("T" + index);
            graph.createEdge("E" + index, source, target);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy