Package

purescript-graphviz

Repository
csicar/purescript-graphviz
License
MIT
Uploaded by
csicar
Published on
2019-06-12T19:31:24Z

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

Development

Running Tests

$ bower install
$ npm install # for running tests in node
$ pulp test