Package counter

Examples of counter.GraphMinimumCutCounter


    String filePath = "minimumCuts/kargerMinCut.txt";
//    String filePath = "minimumCuts/testMinCut.txt";
    int timesToRun = 1000000;
    Map<Integer, Integer> results = new TreeMap<>();
   
    GraphMinimumCutCounter minimumCutCounter = new GraphMinimumCutCounter();
   
    while(timesToRun > 0) {
      int minimumCut = minimumCutCounter.countMinimumCut(
          GraphReader.readGraphsAdjacentList(filePath));
      Integer previousSameMinCutsCountAttemts = results.get(minimumCut);
      if (previousSameMinCutsCountAttemts == null) {
        results.put(minimumCut, Integer.valueOf(1));
      } else {
View Full Code Here

TOP

Related Classes of counter.GraphMinimumCutCounter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.