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