Complex sentence: The overall distance "d" is the distance between levels of the graph, and is chosen so the overall layout will fit on a screen.
Split into simpler sentences: The overall distance "d" is the distance between levels of the graph. It is chosen so that the overall layout will fit within a screen.