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