This quote relates to integrity because a persons integrity or dignity will only allow them to hang with people who share a common goal. A goal that should involve being happy, successful, and a good person. You can judge a person by their interest or friends just as much as you can their actions.