LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gml2gv

GML to Graphviz DOT format converter

TLDR

Convert GML to DOT
$ gml2gv [input.gml] -o [output.gv]
copy
Convert to stdout
$ gml2gv [input.gml]
copy

SYNOPSIS

gml2gv [options] [files]

DESCRIPTION

gml2gv converts graphs from GML (Graph Modelling Language) format to DOT format used by Graphviz. It enables using GML graphs with Graphviz visualization tools.GML is a portable format for graph description. The converter preserves graph structure for rendering with dot, neato, or other Graphviz layout engines.

PARAMETERS

FILES

GML input files. Reads from stdin if omitted.
-o FILE
Output file. Writes to stdout if omitted.
-g NAME
Name for the generated graph. Subsequent graphs get an appended integer.
-v
Verbose mode.
-?
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

Part of Graphviz. Some GML features may not have DOT equivalents. Check attribute preservation.

HISTORY

gml2gv is part of Graphviz, providing format conversion between common graph description languages.

SEE ALSO

dot(1), gv2gml(1), graphml2gv(1)

RESOURCES

Copied to clipboard
Kai