我正在尝试从 DOT 文件创建 PNG,
dot -Tpng -o temp.png
但出现以下错误:
Warning: node s1, port eth2 unrecognized
Warning: node s2, port eth2 unrecognized
Warning: node s2, port eth3 unrecognized
Warning: node s3, port eth2 unrecognized
Warning: node s4, port eth4 unrecognized
Warning: node s3, port eth3 unrecognized
点文件 1:
graph G {
node [shape=record];
graph [hostidtype="hostname", version="1:0", date="04/12/2013"];
edge [dir=none, len=1, headport=center, tailport=center];
"s1":"eth2" -- "s2":"eth2";
"s2":"eth3" -- "s3":"eth2";
"s4":"eth4" -- "s3":"eth3";
}
当我尝试使用以下拓扑文件时,它可以工作。
点文件 2
graph G {
node [shape=record];
graph [hostidtype="hostname", version="1:0", date="04/12/2013"];
edge [dir=none, len=1, headport=center, tailport=center];
"R1":"swp1" -- "R3":"swp3";
"R1":"swp2" -- "R4":"swp3";
}
这里有什么区别。DOT FILE 1 给出错误的原因是什么?