remove edges with zero weight
do it for real