The grid graph how to align at 2d tile size?

grid graph size cant set pix, I want its size same as my 2d tile size,how to it?

Pass the size of the grid you want at runtime with the IUpdatableGraph interface:: See documentation here