set the edge attribute of complete graph in python
i generate a complete graph with arbitrary nodes. each edge has two attributes which the second one is the function of the first one. (for example when the first one is x, the second one is 1/x)
how can i add these attributes to edges.