construct a graph as follows
vertices: from 0 to n, n+1 vertices, where 0 is outside
edges: weight of edge = number of tunnel connecting the two vertices
perform standard max-flow algorithm
is that right?
edges: weight of edge = number of tunnel connecting the two vertices
perform standard max-flow algorithm
is that right?