generating new graphs