Graph limits

Fixes #787
Unrenamed as per Stef's comment which I can't find anymore...