MANTA-24 Update to limit input when graph is very dense, better handles high depth