2/6/2014: added function to find smallest edge attached to vertex