I'm not sure what you mean by "moel”. You'd like to apply this to non 2D graph structures?
The code here uses the python networkX graph library and is not limited to 2D graphs; graph are not inherently 2D to begin with. 2D Grid based graphs where used for demonstration primarily due to there simple visualization and synthesis, as well as resembling a city street scenario.
I'm not sure what you mean by "moel”. You'd like to apply this to non 2D graph structures?
The code here uses the python networkX graph library and is not limited to 2D graphs; graph are not inherently 2D to begin with. 2D Grid based graphs where used for demonstration primarily due to there simple visualization and synthesis, as well as resembling a city street scenario.