【发布时间】:2014-03-16 02:25:15
【问题描述】:
我正在尝试使用点创建图表。但是,它似乎无法识别固定大小等属性。因此,我正在尝试添加 graphviz 库,但我不知道如何使用 .deb 文件并在 C 中使用私有库。这是我的代码,其中固定大小的属性不起作用。我希望节点中的文本被调整,节点大小相同。
digraph test
{
rankdir = LR;
"Activity" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"onCreate()" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"Activity" -> "onCreate()"
"onCreate()" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"onStart()" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"onCreate()" -> "onStart()"
"onStart()" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"onResume()" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"onStart()" -> "onResume()"
"Activity" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"Activity Running" [shape=circle;fixedsize="true";width=.5;height=.5;fontsize=5];
"Activity" -> "Activity Running"
}
【问题讨论】: