Basic graph creation code done. Untested.