graph gets initized