GRAPHML2GV(1)

πŸ“¦
version 16.1.0 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ¦‹ GRAPHML2GV β€” the glow-up converter ✨

okay so bestie, this is a page from the General Commands Manual, and it's literally about graphml2gv. buckle up πŸ’–


✨ NAME ✨

graphml2gv β€” the GRAPHML-to-DOT converter, no cap πŸ’…


🌸 SYNOPSIS 🌸

graphml2gv [ -?v ] [ -ggname ] [ -ooutfile ] [ files ]

πŸŽ€ DESCRIPTION πŸŽ€

so what does it DO? graphml2gv takes a graph that's written in the GRAPHML format and converts it into a graph in the GV format (which used to be called DOT, for the record 🫢). that's the whole job. it's giving translator. it ate. πŸ‘‘


πŸ’– OPTIONS πŸ’–

here's everything it supports, bestie β€” don't skip, it's all important:

  • -v β€” turns on verbose mode. it will yap. πŸ—£οΈ
  • -? β€” prints usage info and then dips out (exits). classic. πŸ’€
  • -ggname β€” the string gname gets used as the name of the generated graph. and if there's more than one graph being generated, the ones after the first get that same gname with an integer tacked onto the end. so like, numbering energy ✨
  • -ooutfile β€” prints the output to the file outfile. and if you don't pass this one at all? it just uses stdout. periodt.

🌈 OPERANDS 🌈

and this is the operand it supports:

  • files β€” the names of files that contain 1 or more graphs in GRAPHML. and if you don't give it any files operand at all, it reads from the standard input instead. slay. πŸ¦‹

⭐ RETURN CODES ⭐

  • returns 0 if there were no problems during the conversion πŸ’š
  • returns non-zero if any error happened 😭

like, that's it. vibe check passed or failed, no in-between.


😭 LIMITATIONS 😭

okay this is the part where we keep it real, bestie, because the graph model and the graphics model of GV and GML differ significantly, so the conversion can only ever be, at best, approximate. not me being honest. πŸ™ˆ

in particular: GV currently has no notion of hyperedges, and no notion of edges containing graphs either.

and at the moment, graphml2gv only supports the basic graph topology. specifically, the <KEY> and <DATA> elements are not handled β€” though, to be fair, they could be. so, like, potential unlocked but nobody unlocked it. πŸ’€

fr fr: if you're relying on keys, data, hyperedges or edges-with-graphs, this is NOT the moment. the conversion is approximate and those things are not handled. no cap.

πŸ‘‘ AUTHORS πŸ‘‘

Emden R. Gansner <erg@research.att.com> β€” the icon who made this 🌟


🧚 SEE ALSO 🧚

dot(1), libcgraph(3)


and that's the whole page!! this one came out of the General Commands Manual, dated 14 July 2011, and that's the version and date, so now you're fully caught up bestie πŸ«ΆπŸ’œ byeeee ✨

πŸ“¦ where this page comes from