apdm - shuffle edges