Removed unused graph code. Added comments.