make Graph variables private