/** Gather statistics, any graph */ public static StatsCollector gather(Graph graph) { StatsCollector stats = new StatsCollector() ; Iterator<Triple> iter = graph.find(Node.ANY, Node.ANY, Node.ANY) ; for ( ; iter.hasNext() ; ) { Triple t = iter.next(); stats.record(null, t.getSubject(), t.getPredicate(), t.getObject()) ; } return stats ; }