public static HashMap dijkstra(Node from) {

\tHashMap distanceMap = new HashMap<>();

\tdistanceMap.put(from, 0);

\tHashSet selectedNodes = new HashSet<>();

\tNode minNode = getMinDistanceAndUnselectedNode(distanceMap, selectedNodes);

\twhile (minNode != null) {

\t\t// 选定最小距离节点 minNode 进行跳转点

\t\tint distance = distanceMap.get(minNode);

\t\tfor (Edge edge : minNode.edges) {

\t\t\tNode toNode = edge.to;

\t\t\tif (!distanceMap.containsKey(toNode)) {"

"