Taladafil and Sildenafil (Cialis and Viagra) are PDE5 inhibitors. They have two roles at this stage:
1) They improve blood flow in tissues which helps with nerve healing after surgery. Actually, only Tadalafil has been shown to have any benefit here, Sildenafil hasn't, and it probably doesn't last long enough, whereas Tadalafil lasts a long time so taking it regularly generates continuous dosing. This is usually 5mg daily low dose Tadalafil or 2 x 20mg/week Tadalafil. (You would need to take Sildenafil 3 or more times per day to achieve the same effect.)
2) They amplify the nerve erection signal. This means if there aren't yet enough nerves working to generate an erection, they amplify the signal from those which are working, and generate a better erection than if you hadn't taken them. Consequently, you'll get an erection sooner if you use them than if you don't. In this case, you take them when you want to get an erection. This is sometimes called an "event" dose which if you're recovering from initially having no or very poor erections after surgery, is likely to be the highest dose (20mg Tadalafil or 100mg Sildenafil). As nerves improve, you might find a lower dose works well enough. Often not all the nerves recover, in which case you might always need to use a PDE5 inhibitor to get a good enough erection.
PDE5 inhibitors won't work if all nerves were removed, as there's no nerve signal to amplify. However, it is still worth trying an "event" dose occasionally in this case because sometimes not all nerves were removed when the surgeon thinks they were, because they sometimes take different routes. Very occasionally they can regrow too, but that typically takes 3 years to start showing up. Indeed it's likely all improvement after 3 years is due to nerves regrowing.