Add a method to generate Kn graphs

Also add ability to output files