Hacker News new | ask | show | jobs
by nickponline 169 days ago
I think this problem is called the maximum-weight closure and can be solved as max flow. You want to find a cut between source (horse) so they were no out-going edges not in the cut (escape routes).
1 comments

It's not the same problem. First, it's not directed, second it's a vertex separation problem.
Ah yes quite right.