Restored colored subtours
Check if graph is connected