Make the graph dynamic