|
definition: |
showDotGraphWithAttrs :: String -> DotGraph -> String
showDotGraphWithAttrs oldattrs dotgraph = case dotgraph of
DGraph name attrs nodes edges ->
"digraph \"" ++ name ++ "\"" ++ attrsbody2dot True attrs nodes edges
UGraph name attrs nodes edges ->
"graph \"" ++ name ++ "\"" ++ attrsbody2dot False attrs nodes edges
where
attrsbody2dot directed attrs nodes edges =
"{\n" ++ (if null oldattrs then "" else oldattrs ++ "\n")
++ concatMap attr2dot attrs
++ concatMap node2dot nodes
++ concatMap (edge2dot directed) edges ++ "}\n"
|
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
Deprecated. Use `dgraphWithAttrs` or `ugraphWithAttrs` to construct graphs with attributes. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{DGraph}) |-> _ || (_,{UGraph}) |-> _}
|
|
name: |
showDotGraphWithAttrs |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> DotGraph -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |