dot-parser 0.6.1

This library provides a parser for the DOT/Graphviz graph description language, as well as useful functions to transform those graphs.
Documentation
//! This module implements *Cluster graphs*. This is a representation of DOT graphs that preserves
//! subgraphs (such as [`crate::ast::Graph`])s, while simplifying the internal representation (e.g.
//! edges are not chained, node, edge and subgraph statements are separated, etc).
//!
//! The main structure of this module is [`Graph`].


use crate::ast::Graph;
use crate::ast::AList;
use crate::canonical::NodeSet

pub struct Graph<A> {
    pub strict: bool,
    pub is_digraph: bool,
    pub name: Option<String>,
    pub attr: Vec<AttrStmt<A>>,
    pub nodes: NodeSet<A>,
    pub edges: EdgeSet<A>,
    pub subgraphs: SubgraphSet<A>,
    pub ideqs: Vec<IDEq>,
}