Graph limits

Fixes #787
As discussed on IRC, spawn does not reliably return all of stdout.  It works well enough for the current code here but not when 'cat'ing two files in one go.  So we need to fix that first.  Stef is on it.