private void findMinimalDistances(Vertex node) {
        List<Vertex> adjacentNodes = getNeighbors(node);
        Vertex lasttarget = null;
        for (Vertex target : adjacentNodes) {
            System.out.println("target.toString() " + target.toString());

            if (getShortestDistance(target) > getShortestDistance(node)
                    + getDistance(node, target)) {
                distance.put(target, getShortestDistance(node)
                        + getDistance(node, target));
                predecessors.put(target, node);
                unSettledNodes.add(target);
            }
            for (int i = 0; i < ds.notoknumber.length - 1; i++) {
                if (predecessors.get(target) != null) {
                    if (ds.notoknumber[i + 1] == Integer.parseInt(predecessors.get(target).getId()) && ds.notoknumber[i] == Integer.parseInt(target.getId())) {
                        predecessors.remove(target);
                        predecessors.remove(lasttarget);
                        distance.remove(target);
                        distance.remove(lasttarget);
                    }
                }
            }
            lasttarget = target;
            //System.out.println("predecessors.get(target) " + predecessors.get(target));
            //System.out.println("predecessors.get(predecessors.get(target) " + predecessors.get(predecessors.get(target)));
            //System.out.println("predecessors.get(predecessors.get(predecessors.get(target))) " + predecessors.get(predecessors.get(predecessors.get(target))) + "\n");
        }

    }