Main { // put this code into class Main {{ static public void main(String args[]) throws Exception { Cd_graph graph = Cd_graph.parse(System.in); ClassGraph cg = Main.buildClassGraph(); TraversalGraph tg1 = new TraversalGraph( "from Cd_graph via Alternat to Vertex", cg); ObjectGraphSlice sl = new ObjectGraphSlice(graph,tg1); Integer result = Utility.countInhRelsDJ (sl); System.out.println("result from DJ = " + result); } }} }