You should review the code to look for boilerplate of C/Pascal legacy that can be made more readable in Python.

```python
col_used = set(graph[adj_node.node_id].color for adj_node in graph[node].iter_neighbors())
col_used.discard(-1)
k1 = min(col_used)
```