Implemented graph creation using temp files.

Stores the corpus graph as file named "corpus.graph" under data folder.