Method for connecting the dots in weighted graphs
