Package

purescript-graphviz

Repository
csicar/purescript-graphviz
License
MIT
Uploaded by
csicar
Published on
2018-01-17

renders Graphs defined in Data.DotLang to SVG, JSON and XDOT.

let g = DiGraph [
    node "a" [ Shape Diamond, Style Filled,  FillColor red ],
    node "b" [],
    "a" ==> "b",
    "a" ==> "d",
    Subgraph [
        node "d" []
    ]
]
let rendered = renderToSvg Dot g

rendered will be:

example image