refreshed and fixed bugs with plotPolyEdgeTypes.m