A graph has edges A–B (weight 1), B–C (2), A–C (3), C–D (4) and B–D (5). · QuantMax