initiate graph