Add graph generator. Closes #14