Create grid from point array

would it be possible to create a grid from a point array?
ah i found the point graph. to calculate the paths it took a much longer time when compared to the grid graph(56ms compared to 14000).
my main reason for wanting to try a point array instead of a grid was i thought it would be more light weight.
since the map being scanned using only uses about 90% of the grid.
in terms of performance which is a better option?


Take a look at this example:
If your data is actually grid-like, then you should definitely use the grid graph because it can assume more things about the graph structure which leads to significantly improved performance and reduced memory usage in many cases.