Package dijkstra.DijkstraShortestPathsAlgorithm

Examples of dijkstra.DijkstraShortestPathsAlgorithm.Vertice


    result.put(lineVertice.getName(), lineVertice);
  }
 
  private static Vertice getVerticeFromLine(String line) {
    String[] graphWithAdjacents = line.split("  ");
    Vertice vertice = new Vertice(
        Integer.valueOf(graphWithAdjacents[0]),
        getAdjacentVericies(graphWithAdjacents));
    return vertice;
  }
View Full Code Here


    scan.close();
    return result;
  }

  private static void processLine(String line, Map<Integer, Vertice> result) {
    Vertice lineVertice = getVerticeFromLine(line);
    result.put(lineVertice.getName(), lineVertice);
  }
View Full Code Here

TOP

Related Classes of dijkstra.DijkstraShortestPathsAlgorithm.Vertice

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.