weightedShortestPathLength

fun weightedShortestPathLength(from: A, to: A, heuristic: (current: A, target: A) -> Double = { _, _ -> 0.0 }): Double(source)

Convenience accessor: total weighted distance from from to to, or Double.POSITIVE_INFINITY if unreachable. Returns 0.0 for the self-path.