I am using MatlabBGL's kamada_kawai_spring_layout for laying out a graph as if the internodal distances were springs of a certain length. This is documented at:

For the internodal distances, however, it uses the shortest graph distance between 2 nodes rather than the weight of the edge itself. Is there a Matlab library routine that lays out a graph using the edge itself? MatlabBGL also has fruchterman_reingold_force_directed_layout, but that is for unweighted graphs.