documentation can be found on pursuit
define your model like this:
DiGraph [
node "a" [ Shape Diamond, Style Filled, Node.FillColor red ],
node "b" [],
"a" ==> "b",
"a" =*> "d" $ [ Edge.FillColor red ],
Subgraph [
node "d" []
]
]
can be rendered using toText
to:
digraph {
a [shape=diamond, style=filled, fillcolor="#f44336"];
b [];
a -> b;
a -> d [fillcolor="#f44336"];
subgraph {
d [];
}
}
let additions =
{ dotlang =
{ dependencies =
[ "colors"
, "console"
, "effect"
, "generics-rep"
, "prelude"
, "psci-support"
, "strings"
, "test-unit"
]
, repo = "https://github.com/csicar/purescript-dotlang.git"
, version = "v2.0.0"
}
}
spago install dotlang
bower i purescript-dotlang
Breaking Changes:
Label
ofEdge
andNode
now support HTML and no formatting: To migrate replace old calls toLabel
with calls tolabel