Graph limits

Fixes #787
Why are we running these as separate commands? It would be more efficient to just invoke /bin/cat once.