Package

purescript-dotlang

Repository
csicar/purescript-dotlang
License
MIT
Uploaded by
csicar
Published on
2018-01-17T19:42:16Z

define your model like this:

DiGraph [
    node "a" [ Shape Diamond, Style Filled,  FillColor red ],
    node "b" [],
    "a" ==> "b",
    "a" ==> "d",
    Subgraph [
    node "d" []
    ]
]

can be rendered using toText to:

digraph {
    a [shape=diamond ,style=filled ,fillcolor=\"#f44336\"];
    b [];
    a -> b;
    a -> d;
    subgraph {
        d []; 
    }
}