public void acceptSettings(ModelSettings settings) {
        if (settings.getInit() == InitType.no) {
            while (Vertex.initialSet.size() > 0)
                Vertex.initialSet.first().setInitial(0);
        }
        if (settings.getInit() == InitType.one) {
            while (Vertex.initialSet.size() > 1)
                Vertex.initialSet.first().setInitial(0);
        }
        Vertex.randomInit.autoInitial();
    }