[graph] Make space_for non-recursive It was tail-recursive so perhaps the compiler did the same. Anyway, make it explicit now.