connected graph PEP-8 fixes