Update the graph of models