edge_betweenness output vector coerced to dist matrix?

I am trying to conduct a correlative analysis where in I am trying to relate the pairwise edge betweenness values to a pairwise genetic value.

I have been unable to determine how to coerce the vector that edge_betweenness() produces into a shape that reflects the dimensions and relative matrix location of a distance matrix that produced the graph in the first place.

Are there ways to do this? I cannot see any options/arguments in the documentation. Thank in advance and sorry if it’s just something simple that I haven’t been able to figure out.