public void changeOuter() throws Exception {
        Set<Node> doneNodes = new HashSet<Node>();
        Set<Node> openNodes = new HashSet<Node>();
        doneNodes.addAll(inNodes);
        //output Nodes
        for (int i = 0; i < outNodes.size(); i++) {
            calculateNode(outNodes.get(i), doneNodes, openNodes);
        }
    }