Hacker News new | past | comments | ask | show | jobs | submit login

In your example the middle node could be green, and the nodes it shares edges with could alternate between red, blue and yellow as you iterate over them.



it took me a moment, but now it seems obvious. Thanks :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: