Computer-aided retrosynthesis supplemented by graph-based step prioritization minimized step count in an alkaloid synthesis.