GATEverse Practice, past papers & mock tests
GATE 2021 · Set-2
AlgorithmsGraph AlgorithmshardNAT2 marks
In a directed acyclic graph with source vertex \(s\), the quality-score of a directed path is the product of its edge weights. For a vertex \(v\ne s\), its quality-score is the maximum quality-score over all paths from \(s\) to \(v\). The quality-score of \(s\) is \(1\). The sum of the quality-scores of all vertices in the graph shown is ______.
Save your progress

Related Algorithms PYQs