emst function

Fitting extremal minimum spanning tree