graph.r