示例#1
0
 @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();
 }
示例#2
0
 @Test(timeout = 60000)
 public void testMST() throws Exception {
   ExecutorService executor = Executors.newFixedThreadPool(NTHREAD);
   GraphAlg.getMST(u_graph, executor);
   executor.shutdown();
 }