Creating undirected graphs with random weights on edges and nodes

Hi,

I am new to Pytorch. Can anyone help me to create a graph in Pytorch with weights on edges and nodes as well.