Updated code to reflect changes in readgraph