strings are not acepted as the edges weight