If anyone else struggles with how the formulae "V-J=1" and "1+D-F=0" are obtained:
You can think of the two different ways of joining bodies of water (join two separate bodies of water (J) and join the same body of water (D)) as algorithms for computing a spanning tree in the original graph (J) and the dual graph (D).