Contain solution for connected cities problem v.1.0