Update eco.py

Fixed logic issue in adjacency generator.