DMelt example: Find a shortest path is a weighted graph using several methods