Build, validate and prune a computation graph
Implement a small graph of neural-network operations: add nodes and dependencies, check structural rules, detect cycles, and remove branches that do not contribute to the required outputs.
No answer yet. Write the first one; the best answer gets endorsed.
