graph: code cleanup lattice paths