/** Compute random node ordering */ public Queue<QEntry> computeRandomNodeOrdering() { Queue<QEntry> queue = new PriorityQueue<QEntry>(); List<Long> randOrderList = CommonUtils.generateRandomOrder(new ArrayList<Long>(graph.nodes.keySet())); for (Long node : randOrderList) { queue.add(new QEntry(node, 0)); } return queue; }
static { VirtualFile vf = Play.getVirtualFile("public/js/treeResource/bulletinOrg.js"); String json = CommonUtils.readJsonConfigFile2String(vf.inputstream()); bulletinClassifies = new Gson().fromJson(json, new TypeToken<List<BulletinClassify>>() {}.getType()); }