Convert GraphML to GV or Dot file

How can I draw a graph in a graph using the "graphml" file as input.
I know what graphviscomes with graphml2gvfor this purpose, but when I try to run this command from the command line, I get this message
  cvtgxl: not configured for conversion from GXL to GV

+4
source share
1 answer

Your copy of Graphviz was compiled without the Expat library (to restore, install Expat, and recompile after launch ./configure --with-expat=yes).

CMD / tools / 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
+2
source

Source: https://habr.com/ru/post/1547006/


All Articles