Skip to content

Commit

Permalink
Add preamble to experimental/evolving/doc.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 21, 2024
1 parent b07c8a6 commit 6eb39ce
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ are available for the static tree algorithm can be used:
]]


example
[[
\tikz[animated binary tree layout]
\graph[nodes={draw,circle}, auto supernode] {
{[when=1] 15 -> {10 -> { ,11}, 20 }},
{[when=2] 15 -> {10 -> {3,11}, 20 }},
{[when=3] 15 -> {10 -> {3, }, 20 }},
{[when=4] 15 -> {10 -> {3, }, 20 -> 18 }},
};
]]
example({
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{evolving} ]],
code = [[
\tikz[animated binary tree layout]
\graph[nodes={draw,circle}, auto supernode] {
{[when=1] 15 -> {10 -> { ,11}, 20 }},
{[when=2] 15 -> {10 -> {3,11}, 20 }},
{[when=3] 15 -> {10 -> {3, }, 20 }},
{[when=4] 15 -> {10 -> {3, }, 20 -> 18 }},
};
]]
})
--------------------------------------------------------------------


Expand Down

0 comments on commit 6eb39ce

Please sign in to comment.