ENH: add an untested function for checking connectivity of a certain highly structured graph