graph problems and others