Edge weights

Let be a Graph or a directed graph then edge weights in some domain is a function .