229230231232233234235236237238239
switch (order) { case BREADTH_FIRST: rt.breadthFirst(); break; case DEPTH_FIRST: rt.depthFirst(); break; } // writing down relations while (!entries.isEmpty()) { Object[] entry = entries.pop();