__init__ and graph