clean up edge weight heuristics