:

  1. Sort the edge list by weight (shortest first)
  2. Initialise a set
  3. While sorted list is not empty:
    1. Dequeue the shortest edge from
    2. If is acyclic:
      1. Update
  4. Return tree