More detailed error message.
Implement printGraph