QIP-based graph genenration