edge_count_global_variables function

Transform distance matrix in edge properties of minimal spanning tree