adding graph and first graph generation