Maximum nodes per cell

Every pixel is occupied by at most n nodes. That is the variable x for cell (r,c) has the value 1 for at most n different nodes.
This makro uses the following other makros:
   • default variables