RyanMarcus

Untitled

Mar 21st, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. package info.rmarcus.ggen4j;
  2.  
  3. import info.rmarcus.ggen4j.graph.GGenGraph;
  4.  
  5. public class Driver {
  6.     public static void main(String[] args) throws GGenException {
  7.         GGenCommand.GGEN_PATH = "/home/ryan/local/bin/ggen";
  8.  
  9.         GGenGraph gg = GGen.dataflowGraph().sparseLU(4).generateGraph().topoSort();
  10.  
  11.         System.out.println("Sources: " + gg.getSources());
  12.         System.out.println("As DOT: " + gg.toGraphviz());
  13.        
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment