---
name: "graphml2gv"
section: "1"
platform: "linux"
package: "graphviz"
version: "16.1.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/graphml2gv"
---

# graphml2gv(1)

GRAPHML-DOT converter

## NAME

graphml2gv - GRAPHML-DOT converter

## SYNOPSIS

**graphml2gv** \[ **-?v** \] \[ **-g***gname* \] \[ **-o***outfile* \] \[  *files* \]

## DESCRIPTION

**graphml2gv** converts a graph specified in the GRAPHML format to a graph in the GV (formerly DOT) format.

## OPTIONS

The following options are supported:

- **-v**

  Turns on verbose mode

- **-?**

  Prints usage information and exits.

- **-g***gname*

  The string *gname* is used as the name of the generated graph. If multiple graphs are generated, subsequent graphs use the name *gname* appended with an integer.

- **-o***outfile*

  Prints output to the file *outfile*. If not given, **graphml2gv** uses stdout.

- The following operand is supported:

  ## OPERANDS

- *files*

  Names of files containing 1 or more graphs in GRAPHML. If no *files* operand is specified, the standard input will be used.

## RETURN CODES

Return **0** if there were no problems during conversion; and non-zero if any error occurred.

## LIMITATIONS

As both the graph and graphics models of GV and GML differ significantly, the conversion can only be at best approximate. In particular, GV currently has no notion of hyperedges or edges containing graphs.

At present,  **graphml2gv** only supports the basic graph topology. Specifically, the \<KEY\> and \<DATA\> elements are not handled, though they could be.

## AUTHORS

Emden R. Gansner \<erg@research.att.com\>

## SEE ALSO

[dot(1)](/dot/1.md), libcgraph(3)
