definition:
|
graphFromXml :: Bool -> XmlExp -> Graph
graphFromXml labelNID xml = case xml of
XElem "graph" _ listelems -> map (nodeFromXml labelNID)
(filterElems "node" listelems)
_ -> error "No gaph supplied"
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
-- Extract a Graphs from a xml graph
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{XElem}) |-> {:,[]}}
|
name:
|
graphFromXml
|
precedence:
|
no precedence defined
|
result-values:
|
{:,[]}
|
signature:
|
Prelude.Bool -> XML.XmlExp -> [Node]
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|