Fix problem in terminate. Add possibility to select the minimum number of vertex...