adict-0.1.0: Approximate dictionary searching
NLP.Adict.Graph
Synopsis
minPath :: (Show n, Show w, Ord n, Ord w, Num w, Fractional w) => w -> Edges n w -> IsEnd n -> n -> Maybe ([n], w)Source
Find shortes path from a beginning node to any ending node.
type Edges n w = n -> [(w, n)]Source
type IsEnd n = n -> BoolSource