how to plot a graph using haskell graphViz

Viewed 3327

I'm planning to draw a graph using Haskell graphViz. I'm new to haskell, so this is quite difficult for me. Can someone show me a simple example ? I need a very simple example actually, so that I can understand it and use it in the scenario I'm working on

enter image description here

I get the above error on trying to install chart-cairo. I saw some examples on the internet and all of them requires chart-cairo. any idea how to resolve it ?

*EDITED" The output that I get after executing the code given by https://stackoverflow.com/users/2827654/jamshidh enter image description here

1 Answers
Related