This is a simple Java wrapper around GGen. Better docs to come, for now here is a simple example:
public static void main(String[] args) throws GGenException {
GGenCommand.GGEN_PATH = "/Users/ryan/local/bin/ggen";
GGenGraph gg = GGen.staticGraph()
.cholesky(5)
.edgeProperty("weight").flat(0.0, 100.5)
.edgeProperty("weight2").pareto(1.0, 5.0)
.generateGraph();
System.out.println("Sources: " + gg.getSources());
System.out.println("As DOT: " + gg.toGraphviz());
}
You can add it from my personal Maven repo:
<repositories>
<repository>
<id>git-ryanmarcus</id>
<name>RyanMarcus's Git based repo</name>
<url>https://github.com/RyanMarcus/maven-repo/raw/master/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>edu.brandeis</groupId>
<artifactId>ggen4j</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>