prim: added method to get minimal value node in order to update GUI