Prim's (MST) : Special Subtree

  • + 1 comment

    I do not get the second example. You start on A, with two options, of weight 3 (B) and 4 (C) After picking B, one have the following options: A-C (4), B-C (5), B-D (6) and B-E (2). So one pick B-E. Until then, okay.

    But now we have A-C (4) B-C (5), B-D (6) and E-C (1), so we should pick E-C. Why did the example pick A-C ?