Heteroclinic and homoclinic connections in a Kolmogorov-like flow.