I need help trying to understand graphs

So I am currently using the textbook "C++ Data Structures 3rd Edition", and I have taken some code out of the book. I need help understanding why I keep getting the same three errors. Again the .h and .cpp files are right out of the book. I am merely trying to understand how to make the code work so that I can apply it to my project. Here's the code: