Skip to content

Function: fromDot() ​

ts
function fromDot(text): GraphData;

Parse DOT text into a graph. Throws a SyntaxError that names the offset when the text is not DOT. See the module comment for what is read and what is kept.

Parameters ​

ParameterType
textstring

Returns ​

GraphData

Released under the MIT License.