#graph #petgraph #language #convert #pull-request #requests #graph-ast

bin+lib graphviz-dot-parser

A simple (incomplete) parser for Graphviz DOT format

4 releases

0.0.4 Feb 4, 2024
0.0.3 Jan 16, 2023
0.0.2 Oct 17, 2021
0.0.1 Dec 3, 2020

#2182 in Parser implementations

41 downloads per month

MIT license

18KB
491 lines

A Simple Parser for Graphviz DOT language

Parse DOT into GraphAST, which can then convert to a graph in the petgraph library.

Still work-in-progress, pull requests are welcomed!

A few TODOs

  • Handle comments/spaces correctly
  • Support subgraphs and attribute statements
  • Convert node/edge labels into petgraph
  • Support edges with multiple RHS
  • Support node_id with ports

Dependencies

~2.5MB
~46K SLoC