Adding Graph Constructor and removing neighbor module