Homologies of complexes of doubly connected graphs