TGF (.tgf) Graph Format
TGF file format
TGF (Trivial Graph Format) is a simple text-based file format for storing a single graph.
It also allows the application of labels to vertices and edges.
The format does not specify whether the graph is directed or undirected.
The GraphTheory[ImportGraph] and GraphTheory[ExportGraph] commands can read from and write to this format.
The general-purpose commands Import and Export also support this format.
Import a TGF file encoding a directed graph.
G ≔ Import⁡example/digraph.tgf,base=datadir
G≔Graph 1: a directed graph with 11 vertices and 12 arc(s)
Export the Dyck graph to a TGF file in the home directory of the current user.
DG ≔ GraphTheory:-SpecialGraphs:-DyckGraph⁡
DG≔Graph 2: an undirected graph with 32 vertices and 48 edge(s)
Download Help Document