moving nodes, updating edges