Reworked GraphAdapter to read graph dimensions and ordering from a text file