added trivial code for EMST with nice plotting