if edge weight is set, set size attribute to this value to make setting minEdgeSize and maxEdgeSize effective