updated the computational model for the graph