Removed empty case (cannot occur). Skip computation if only one pixel.
Fixes for single pixel 'branches'.
Use matplotlib graph plotting when graphviz isn't installed.