Load a graph to adjust its layout.