Graph limits

Fixes #787