Graphons are graphically represented by shading the unit square. The point
units down and
units to the right of the upper-left corner, is shaded based on where
lies between 0 (white) and 1 (black). The DensityPlot function follows the normal Cartesian coordinate system of the plane and also sets 0 as black and 1 as white, so a simple transformation is needed inside the function.