如何使用" graphml"在graphvis中绘制图形。文件作为输入。
我知道graphvis
为graphml2gv
附带此目的,但当我尝试从命令提示符运行此命令时,我收到此消息
cvtgxl: not configured for conversion from GXL to GV
答案 0 :(得分:2)
您的Graphviz副本是在没有Expat库的情况下编译的(要解决,请安装Expat并在运行./configure --with-expat=yes
后重新编译)。
<强> CMD /工具/ graphml2gv.c 强>:
#ifdef HAVE_EXPAT
initargs(argc, argv);
while ((inFile = getFile())) {
while ((G = graphml_to_gv(nameOf(gname, gcnt), inFile, &rv))) {
gcnt++;
if (prev)
agclose(prev);
prev = G;
if (Verbose)
fprintf (stderr, "%s: %d nodes %d edges\n",
agnameof (G), agnnodes(G), agnedges(G));
agwrite(G, outFile);
fflush(outFile);
}
}
exit(rv);
#else
fputs("cvtgxl: not configured for conversion from GXL to GV\n", stderr);
exit(1);
#endif