如何在graphviz中隐藏节点边界?

hig*_*dth 4 dot graphviz graph-visualization

我正在用graphviz绘制图形。即使我有penwidth=0节点,我仍然看到节点边界。如何摆脱节点边界?

我在点中的注释是这样的:

strict graph  {
    graph [bgcolor=white];
    0    [fillcolor=red,
        style=filled,
        shape=octagon,
        penwidht=0,
        fontsize=10,
        fixedsize=True,
        width=0.5,
        height=0.5,
        type=3];
    2    [shape=octagon,
        style=filled,
        fillcolor=gray,
        penwidth=0];
    0 -- 2  [penwidth=0.5,
        color=gray];
}
Run Code Online (Sandbox Code Playgroud)

Ram*_*mon 6

问题是你有一个错字。

penwidht应该penwidth

strict graph  {
    graph [bgcolor=white];
    0    [fillcolor=red,
        style=filled,
        shape=octagon,
        penwidth=0,
        fontsize=10,
        fixedsize=True,
        width=0.5,
        height=0.5,
        type=3];
    2    [shape=octagon,
        style=filled,
        fillcolor=gray,
        penwidth=0];
    0 -- 2  [penwidth=0.5,
        color=gray];
}
Run Code Online (Sandbox Code Playgroud)