updated the graph reader writer to use resolution correctly