Pergunta de entrevista da empresa Bridgewater Associates

Analyze a weighted directed graph.