@Test(timeout = 60000) public void testCC() throws Exception { ExecutorService executor = Executors.newFixedThreadPool(NTHREAD); Collection<Collection<Node<String>>> result = GraphAlg.getConnectedComponents(u_graph, executor); executor.shutdown(); }
@Test(timeout = 60000) public void testMST() throws Exception { ExecutorService executor = Executors.newFixedThreadPool(NTHREAD); GraphAlg.getMST(u_graph, executor); executor.shutdown(); }