Added an error check and a console message when trying to read in non-acyclic graphs.