made attributes and inner class from Graph private