LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gv2gml

converts Graphviz DOT format to GML

TLDR

Convert DOT to GML
$ gv2gml [input.gv] -o [output.gml]
copy
Output to stdout
$ gv2gml [input.dot]
copy
Process multiple files
$ gv2gml [file1.gv] [file2.gv] -o [output.gml]
copy

SYNOPSIS

gv2gml [-y] [-?] [-o outfile] [files]

DESCRIPTION

gv2gml converts a graph specified in the DOT language to GML (Graph Modelling Language), an interchange format used by graph analysis and visualization tools such as yEd and Gephi.It is the reverse-direction counterpart of gml2gv, both built from the same source and dispatching on the program name.

PARAMETERS

FILES

Input DOT/GV files. Reads stdin if none given.
-o outfile
Write output to outfile instead of stdout.
-y
Use yWorks.com GML attribute conventions instead of the plain GML specification.
-?
Display usage information and exit.

INSTALL

sudo apt install graphviz
copy
sudo dnf install graphviz
copy
sudo pacman -S graphviz
copy
sudo apk add graphviz
copy
sudo zypper install graphviz
copy
brew install graphviz
copy
nix profile install nixpkgs#graphviz
copy

CAVEATS

Does not support subgraphs or clusters. GML has no way to declare default node/edge attributes, so gv2gml repeats each attribute explicitly on every node and edge.

HISTORY

gv2gml is part of the Graphviz project, created at AT&T Labs for graph format conversion.

SEE ALSO

dot(1), gml2gv(1), graphml2gv(1), gxl2gv(1)

RESOURCES

Copied to clipboard
Kai