Fixed graph loading to load lesser value from number of nodes or number of coordinates.