Pregunta de entrevista de Apple

Solve a design problem using Graph theory. Rewrite one of the core Java APIs.