Gridgraph walkability height cut

It would be cool if you could add a max and min height on a grid graph so all points under the min or over the max are tagged as unwalkable.
This would be useful for example, to set the water level.