GML2GV,GV2GML(1)
๐ GML2GV,GV2GML ๐
okay bestie, sit down, hydrate, because today we're talking about a two-for-one situation: gml2gv and gv2gml, the GML-DOT converters, both living in section 1 of the manual (that's General Commands Manual energy, iykyk). two icons, one page, no notes. ๐
โจ SYNOPSIS โจ
gml2gv [ -?v ] [ -ggname ] [ -ooutfile ] [ files ]
gv2gml [ -y ] [ -? ] [ -ooutfile ] [ files ]
look at them. so tidy. so slay. ๐
๐ฆ DESCRIPTION ๐ฆ
so here's the tea, bestie:
gml2gvtakes a graph that's written in the GML format and converts it into a graph in the GV format โ and yes, GV is the thing that used to be called DOT, the glow-up was real. โญgv2gmlgoes the other way around: it takes a graph in the GV format and hands you back a graph in the GML format. ๐
it's giving translator besties. one speaks GML, one speaks GV, they're each other's duolingo streak. ๐ฆ
๐ OPTIONS ๐
The following options are supported (and yes, we're going through every single one, no skipping, that's the rule ๐):
-vโ turns on verbose mode. it will simply talk to you more. main character behavior honestly. ๐ฃ๏ธ-yโ uses attributes according to yWorks.com documentation instead of the GML specification. so like, a different rulebook for the attributes. pick your canon, bestie. ๐-?โ prints usage information and then exits. it's the "what do you want from me" flag. ๐-ggnameโ the string gname gets used as the name of the generated graph. and if multiple graphs get generated, the subsequent graphs use the name gname appended with an integer. sogname, thengname+ a number, then another number, etc. cute little sequel naming convention, very franchise of them. ๐ข-ooutfileโ prints output to the file outfile. and if you don't give it one?gml2gvuses stdout. so it just yells into your terminal, as nature intended. ๐ข
๐ธ OPERANDS ๐ธ
The following operand is supported:
- files โ names of files containing 1 or more graphs in GML. and if you don't specify any files operand at all, the standard input will be used. so you can just pipe it in like the tech-savvy legend you are. ๐ซถ
๐ RETURN CODES ๐
- returns 0 if there were no problems during conversion โจ
- returns non-zero if any error occurred ๐
so like, 0 = good vibes, anything else = the vibe check failed. ๐ญ
๐ LIMITATIONS ๐
okay this is the part where we get real, bestie, because the manual is about to humble us:
- the graph and graphics models of GV and GML differ significantly, so the conversion is at best approximate. it's not a perfect match, it's a vibe-based approximation. ๐ซ
- in particular, it is not clear how multiedges are differentiated in GML, so multiedges are created in GV with no user-available key. that's just how it is, no cap.
- also, no attribute information is lost, in that any GML attributes that aren't converted to GV equivalents are retained as attributes in the output graph. nothing gets ghosted here, everything is kept. ๐ฅฐ
- at present,
gv2gmldoes not support subgraphs and clusters. nope. not supported. don't ask. ๐ซ - in addition, there does not appear to be a standard mechanism for specifying default node and edge attributes in GML, so any attributes are repeated for every node and edge. yeah. every single one. it's verbose like that. ๐ฎโ๐จ
no fr, remember: this conversion is approximate, gv2gml has no subgraph/cluster support, and multiedges come out of GML with no user-available key in GV. the manual said it, so we said it. ๐ซก
๐ AUTHORS ๐
- Emden R. Gansner
<erg@research.att.com>โ the icon, the moment, the legend who wrote this. ๐
๐ SEE ALSO ๐
dot(1)libcgraph(3)
go read those next, bestie, that's the homework. ๐โจ
and that's the whole page! ๐ this was GML2GV,GV2GML(1) from the General Commands Manual, dated 24 June 2011 โ yes, that's the source/version-and-date sign-off, we're closing it out with a lil curtsy ๐. mwah, go convert some graphs, you've got this. ๐๐ฆ๐ธ
๐ฆ where this page comes from
- alpine 3.22: graphviz-doc 12.2.1-r0 ยท EPL-1.0
- alpine 3.23: graphviz-doc 12.2.1-r0 ยท EPL-1.0
- alpine 3.24: graphviz-doc 12.2.1-r3 ยท EPL-1.0
- arch rolling: graphviz 16.1.0-2 ยท EPL
- fedora 43: graphviz 13.1.1-3.fc43 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.1-3.fc43 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 ยท epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- nixos 26.05: graphviz 12.2.1
- nixpkgs unstable: graphviz 15.1.1
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 ยท EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 ยท EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 ยท EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 ยท EPL-1.0
- ubuntu resolute: graphviz-tools 14.1.2-1ubuntu1 ยท EPL-1.0
- ubuntu stonking: graphviz-tools 14.1.2-1ubuntu2 ยท EPL-1.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms