Question d’entretien chez Amazon

Implement directed graph as a class?