PURPOSE: This randomized clinical trial is studying giving sildenafil together with alprostadil in treating patients undergoing nerve-sparing robotic-assisted radical prostatectomy for nonmetastatic prostate cancer.