Added graph generation using a set theoretic approach. (Thanks Paul!)