DOT is the text file format of the suite GraphViz. It has a human-readable syntax that describes network data, including subgraphs and elements appearances (i.e. color, width, label). NetworkX, Tulip or ZGRViewer can import DOT files as well. Additional informations can be found on Wikipedia.

The following link shows the official website, where information is available about the DOT format.

DOT Specification GraphViz website

Gephi currently doesn’t provide a complete support of the DOT format. Subgraphs are not supported, nor custom attributes or size. Only labels and colors are imported if present. Directed and undirected graphs are supported.


Basic example

The sample below shows a directed graph with two edges.

digraph sample {
A -> B;
B -> C;


The sample below shows the same example but with both node and edge labels.

digraph sample2 {
A -> B [ label = "Edge A to B" ];
B -> C [ label = "Edge B to C" ];
A [label="Node A"];

Adjacency lists

The sample below shows edges can be put as adjacency lists.

digraph sample3 {
A -> {B ; C ; D}
C -> {B ; A}