set the graph environment