Reverse-Engineering Biological Pathways