Graph with random edge weights c++


how I can read a graph with random edge weights from a file, and then store the graph information in an adjacency matrix? c++