I'm using the code below to generate some random Euclidean graphs. I expected the adjacency matrix to have the distances between nodes rather than just being a binary representation of the connections. How do I make the adjacency matrix hold the actual distances/weights between nodes?
g = nx.generators.random_geometric_graph(n, 10)
adj = nx.adjacency_matrix(g).todense()