trying to fix edge weight editing
fixed edge weight editing