import EDU.neu.ccs.demeter.dj.*;

class Main {
  public static void main(String[] args) {    
    System.out.println(TraversalGraph.version());

    ClassGraph cg = new ClassGraph(); // constructed from *.java
    A a = new A(new C(new D("acd"),
		      new E(new D("abe"))),
		new D("ad"));
    TraversalGraph tg = TraversalGraph.compute(cg, new Strategy("from A via B to D"));
    System.out.println(tg.gather(a));
    //System.out.println(cg.gather(a, new Strategy("from A to D")));
    //System.out.println(cg.gather(a, new Strategy("from A to *"))); fixme
    System.out.println(tg);
  }
}

