12345678910111213141516171819202122232425262728293031323334353637 |
- /* generated by anytree Python tree data library
- https://github.com/c0fec0de/anytree
- >>> def nodenamefunc(node):
- ... return '%s:%s' % (node.name, node.depth)
- >>> def edgeattrfunc(node, child):
- ... return 'label="%s:%s"' % (node.name, child.name)
- >>> def edgetypefunc(node, child):
- ... return '--'
- >>> from anytree.exporter import DotExporter
- >>> for line in DotExporter(root, graph="graph",
- ... nodenamefunc=nodenamefunc,
- ... nodeattrfunc=lambda node: "shape=box",
- ... edgeattrfunc=edgeattrfunc,
- ... edgetypefunc=edgetypefunc):
- ... print(line)
- */
- graph tree {
- "root:0" [shape=box];
- "sub0:1" [shape=box];
- "sub0B:2" [shape=box];
- "sub0A:2" [shape=box];
- "sub1:1" [shape=box];
- "sub1A:2" [shape=box];
- "sub1B:2" [shape=box];
- "sub1C:2" [shape=box];
- "sub1Ca:3" [shape=box];
- "root:0" -- "sub0:1" [label="root:sub0"];
- "root:0" -- "sub1:1" [label="root:sub1"];
- "sub0:1" -- "sub0B:2" [label="sub0:sub0B"];
- "sub0:1" -- "sub0A:2" [label="sub0:sub0A"];
- "sub1:1" -- "sub1A:2" [label="sub1:sub1A"];
- "sub1:1" -- "sub1B:2" [label="sub1:sub1B"];
- "sub1:1" -- "sub1C:2" [label="sub1:sub1C"];
- "sub1C:2" -- "sub1Ca:3" [label="sub1C:sub1Ca"];
- }
|