generate even graph