Change edge index. Compiles but does not work yet.