Dotgraph
javascript parser for Graphviz dot/xdot format
Install / Use
/learn @siefkenj/DotgraphREADME
dotgraph
javascript parser and library for the Graphviz dot/xdot format, implimented based on the grammar defined http://www.graphviz.org/doc/info/lang.html provides a parser based on PEG.js and some javascript objects for manipulating and querying graph properties.
Basic Usage
ast = DotParser.parse(str_source);
graph = new DotGraph(ast);
graph.walk(); // walks the ast and gathers all information about nodes, edges, and subgraphs
console.log(graph.nodes); // object of all nodes and their attrs
console.log(graph.edges); // object of all edges and their attrs
console.log(graph.graphs); // object of all subgraphs and their attrs
XDotGraph is a subclass of DotGraph that parses all the recognized xdot attributes and turns
them into javascript objects, automatically converting inches to pixels where applicable.
Note: the list of recognized attributes is currently very short, consisting of pos (for
nodes and edges), width, height, bb, lp
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
