write ( sink, graph ) ;
}
private static void write (Sink<Pair<Node, Map<Node, Set<Node>>>> sink, Graph graph) {
QueryHandler queryHandler = graph.queryHandler() ;
ExtendedIterator<Node> subjects = queryHandler.subjectsFor(Node.ANY, Node.ANY) ;
try {
Map<Node, Set<Node>> predicates = new HashMap<Node, Set<Node>>() ;
while ( subjects.hasNext() ) {
Node subject = subjects.next() ;
ExtendedIterator<Triple> triples = graph.find(subject, Node.ANY, Node.ANY) ;