removed integer check for edge weight