Introduction
The Trivial Graph Format is a simple text format that stores a graph as lists of
its nodes and edges, with at most one label for each. There is no formal standard.
Files use the extension .tgf.
Structure
The file has two parts separated by a line holding #. Each line of the
first part gives a node identifier, optionally followed by a space and a label. Each
line of the second part gives the identifiers of the two nodes an edge joins,
optionally followed by a label. Some programs require the identifiers to be
integers.
Not described
This page is a first outline.
Known, not yet covered
- Reference: character encoding and the differences between programs in reading identifiers, labels and edge direction.
- Viewer: the site has no viewer for this format.
Links
Software
- yEd – graph editor that handles TGF
- Wolfram Language – imports and exports TGF
- Gephi – imports TGF
Reference
- Trivial Graph Format – Wikipedia’s summary
- TGF – Wolfram’s format page