The Gopakumar-Vafa Formula