Invasion bond percolation (IBP) is mapped exactly into Prim's algorith
m for finding the shortest spanning tree of a weighted random graph. E
xploring this mapping, which is valid for arbitrary dimensions and lat
tices, we introduce a new IBP model that belongs to the same universal
ity class as IBP and generates the minimal energy tree spanning the IB
P cluster.