Task

Interactive — Live C++ Editor

Learning Objectives
    Write C++ for this task. Click Check Task to receive feedback and points.

    Auto-Checks

    Dataset Format (example)

    # Format: src dst bandwidth
    0 1 50
    1 2 30
    0 2 20
    2 3 40
    
    Use std::ifstream to read triples. The graph is directed.