Basic implementation of ReadGraph. Not sure how well I like the design