Build Grid Graph during runtime

Hi

This thread might be of some help: Create a graph dynamically