curve entries for edges of weight 0 are now correctly removed.