begin a web script to compare resistance distance and commute distance for undirected weighted graphs