Apply graph algorithm
Effective pair programming