Skip adding 0 weight edges.