final ReteMemory mem = ((RetePatternMatcherState)system.getMatcherState()).getReteMemory(); this.g = new DirectedSparseGraph(); buildGraph(g, root);
System.out.println("Rete memory: "+((RetePatternMatcherState)system.getMatcherState()).getReteMemory());