public void removeMassSpringNetwork() {
        for (int i = masses.size() - 1; i >= 0; i--) {
            if (masses.get(i).getType() == NETWORK) {
                masses.remove(i);
            }
        }

        for (int i = springs.size() - 1; i >= 0; i--) {
            Spring spring = springs.get(i);

            if (spring.getSource().getType() == NETWORK
                    || spring.getDestination().getType() == NETWORK) {
                springs.remove(i);
            }
        }
    }