public void setInputData(List<Double> in, List<Double> out) {
        try {
            if (in.size() != inNodes.size() || out.size() != outNodes.size()) {
                throw new Exception("wrong node number (in or out)");
            } else {
                for (int i = 0; i < inNodes.size(); i++) {
                    inNodes.get(i).setPotential(in.get(i));
                }
                for (int i = 0; i < outNodes.size(); i++) {
                    outNodes.get(i).setAnswer(out.get(i));
                }
            }
        } catch (Exception exc) {
            System.out.println("==================================");
            System.out.println("ERROR : " + exc.getMessage());
            System.out.println("==================================");
        }
    }