edges-weight not undefined