This question evaluates graph modeling, algorithmic reasoning for chaining pairwise ratios, and understanding of topological ordering and DAG properties within the context of currency conversion, assessing skills in data structures, graph algorithms, and complexity analysis.
You are given pairwise currency ratios such as "a:b = 1:1.5" and "b:c = 1:1.5". Design functions to: (