public int findHighestScoreForNode(int node) {
        int highestScore = 0;
        for (List<Integer> list : graph) {
            if (list.get(1) == node) {
                int score = list.get(2);
                if (score > highestScore) {
                    highestScore = score;
                }
            }
        }

        return highestScore;
    }