LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

graphml2gv

GraphML to Graphviz DOT format converter

TLDR

Convert GraphML to DOT
$ graphml2gv [input.graphml] -o [output.gv]
copy
Output to stdout
$ graphml2gv [input.graphml]
copy
Process multiple files
$ graphml2gv [file1.graphml] [file2.graphml] -o [output.gv]
copy

SYNOPSIS

graphml2gv [options] [files]

DESCRIPTION

graphml2gv converts GraphML format graphs to Graphviz DOT format. It enables using GraphML data with Graphviz visualization tools.The tool handles the translation between the XML-based GraphML format and the GV (formerly DOT) language. As both the graph and graphics models of GV and GraphML differ significantly, the conversion is approximate. GraphML features such as hyperedges or edges containing graphs have no GV equivalent. Currently, graphml2gv only supports basic graph topology.

PARAMETERS

FILES

GraphML input files. If omitted, reads from standard input.
-o FILE
Write output to the specified file.
-g gname
Use gname as the name of the generated graph. For multiple graphs, an integer is appended.
-v
Enable verbose mode.
-?
Print 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 the Graphviz package. GraphML features like hyperedges and nested graphs are not supported. Requires valid GraphML input.

HISTORY

graphml2gv is part of the Graphviz project, created at AT&T Labs to handle format conversions for graph visualization.

SEE ALSO

gv2gml(1), gml2gv(1), dot(1), neato(1), graphviz(1)

Copied to clipboard
Kai