Back to prompt library
Implement CPM Graph Algorithm in Python
Linked challenge: Subcontractor Delay & Construction Schedule Risk Forecasting
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Write a Python function using NetworkX that builds a DAG of tasks, executes forward/backward pass, computes critical path, and recalculates total project days when a task is delayed.