Application of quantum-graph theory to the quantum mechanics of extremely floppy molecules