I am sorry that I was hasty that day. It should be `any` not `issuperset`.

```python
connected = any(col2_adj.node_id in visited for col2_adj in graph[node].iter_neighbors_color(col2))
```