Pergunta de entrevista da empresa Apple

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