How to extract weights from SimpleWeightedEdge (from kruskal_mst)

It’s generally considered bad practice to access internal fields directly, you should prefer the accessor weight(e::AbstractSimpleWeightedEdge). The documentation can probably be improved in this regard.

1 Like