DOT Graph Loader
Use the published @loaders.gl/graphs package (4.5.3 or later) to parse DOT files.
import {load} from '@loaders.gl/core';
import {DOTLoaderWithParser} from '@loaders.gl/graphs/dot-loader';
import {ClassicGraph} from '@deck.gl-community/graph-layers';
const data = await load('network.dot', DOTLoaderWithParser);
const graph = new ClassicGraph({data});
For synchronous text parsing, call DOTLoaderWithParser.parseTextSync(text).
The result contains plain nodes, edges, and DOT metadata, including graph attributes,
direction, strictness, and subgraph descriptors. IDs remain strings. Node and edge attributes
include scoped defaults and subgraph membership.
DOT syntax validation and strict-graph edge coalescing follow the upstream parser. See the loaders.gl graphs documentation for supported syntax and limitations.