Back

min-weight-along-path (clj)

(source)

function

(min-weight-along-path path weight-fn)
Given a path, represented by a sequence of nodes, and weight-function, computes the minimum of the edge weights along the path. If an edge on the path is missing, returns 0.

Examples