Fruchterman-Reingold forced directed layout,and Dijkstra search algorithm in Haskell.