Closure Table v0.1.1 CTE.Utils View Source
Basic utilities for helping developing functionality about the CTE
data structures
Link to this section Summary
Functions
render a path hierarchy as a .dot string that you could use for drawing your results, using graphviz. w⦿‿⦿t!
Link to this section Functions
render a path hierarchy as a .dot string that you could use for drawing your results, using graphviz. w⦿‿⦿t!
Upon receiving something like this:
%{
nodes: %{
6 => %{
author: "Rolie",
comment: "Everything is easier, than with the Nested Sets.",
id: 6
},
8 => %{
author: "Olie",
comment: "I’m sold! And I’ll use its Elixir implementation! <3",
id: 8
},
9 => %{author: "Polie", comment: "w⦿‿⦿t!", id: 9}
},
paths: [[6, 6], [6, 8], [6, 9], ' ', '']
}
this will output a .dot formatted string that you could use later for generating
an image: dot -Tpng <filename>.dot -o <filename>.png