Improving Patient Outcomes with Graph Algorithms