0
我现在正在实现频繁模式树。为了可视化,我使用dot/graphviz(特别是wintersleep-graphviz 0.1,但现在不应该关注我们),到目前为止它工作正常。在Dot/Graphviz中使用分支之间的连接时保持树布局
当可视化节点链接(分支之间的连接)时,树形布局会中断。我怎样才能防止这一点?
例子: Ordinary Tree 代码:
#!/bin/env dot
digraph FrequentPatternTree30 {
# attributeListListList:
# attributeList:
# child graphs:
# nodes:
30 [label="root"]
31 [label="f:4"]
32 [label="c:2"]
34 [label="c:1"]
33 [label="b:2"]
35 [label="b:1"]
# edges:
30 -> 31
;
31 -> 32
;
30 -> 34
;
32 -> 33
;
34 -> 35
;
}
#!/bin/env dot
digraph FrequentPatternTree30 {
# attributeListListList:
# attributeList:
# child graphs:
# nodes:
30 [label="root"]
31 [label="f:4"]
32 [label="c:2"]
34 [label="c:1"]
33 [label="b:2"]
35 [label="b:1"]
# edges:
30 -> 31
;
31 -> 32
;
30 -> 34
;
32 -> 34
[style="dotted"];
32 -> 33
;
34 -> 35
;
33 -> 35
[style="dotted"];
}
我很抱歉,如果得到适当的未显示的示例图像,但我的名声仍然太低。
适合我,谢谢! +1(投票需要15点声望:() – Obererpel 2015-02-10 10:51:16