The format of input graph files is a subset of the DOT format. A graph be either a directed graph or an undirected graph.
1. Directed Graph:
2. Undirected Graph:
Nevertheless, the input graph can be a multigraph, where parallel edges are allowed.
You can find several example DOT files in the 'sample_graph' directory or download them here.
Names for graphs, nodes, edges, and attributes can be strings of any non-space characters except:
There are no escape characters.
Space characters can be used by wrapping the string with double-quotes.
Comments can be added throughout the DOT file with either '
#' or '
//'; any trailing characters are ignored by the parser.