[Haskell-cafe] fgl Data.Graph examples

Anatoly Yakovenko aeyakovenko at gmail.com
Fri May 16 01:37:31 EDT 2008

Can someone post some simple examples of using the Data.Graph library?
So I can define a simple graph

let g = buildG (1,2) [(1,2), (2,1)]

but how do i label my edges and nodes?  i want to be able to name my
nodes, and add weights to the edges and be able to update those
weights as well.


More information about the Haskell-Cafe mailing list