How To Recognize Trees