SML-graphs is a project mainly written in ..., it's free.
Graphs in SML
Implementing graphs and algorithms in SML