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