Archeometer.Graphs.Mermaid (Archeometer v0.5.0)
Functions for working with mermaid-JS graphs
Link to this section Summary
Functions
Renders an graph represented by an adjacency list into .dot format.
Link to this section Functions
Link to this function
render(xrefs)
Renders an graph represented by an adjacency list into .dot format.
Returns a string containing de rendered graph.
examples
Examples
iex(2)> graph = %{
...(2)> :a => [:b, :c],
...(2)> :b => [:c, :d],
...(2)> :d => [:a]
...(2)> }
%{a: [:b, :c], b: [:c, :d], d: [:a]}
iex(3)> str = Mermaid.render(graph)
iex(3)> assert is_binary(str)