added support for calculate the starting graph