hydra.graphviz.serde module

Serialization functions for converting Graphviz DOT AST to abstract expressions.

hydra.graphviz.serde.attr_list_to_expr(al: AttrList) Expr

Convert an attribute list to an expression.

hydra.graphviz.serde.attr_stmt_to_expr(as_: AttrStmt) Expr

Convert an attribute statement to an expression.

hydra.graphviz.serde.attr_type_to_expr(t: AttrType) Expr

Convert an attribute type to an expression.

hydra.graphviz.serde.compass_pt_to_expr(p: CompassPt) Expr

Convert a compass point to an expression.

hydra.graphviz.serde.edge_stmt_to_expr(directed: bool, es: EdgeStmt) Expr

Convert an edge statement to an expression.

hydra.graphviz.serde.equality_pair_to_expr(eq: EqualityPair) Expr

Convert an equality pair to an expression.

hydra.graphviz.serde.graph_to_expr(g: Graph) Expr

Convert a graph to an expression.

hydra.graphviz.serde.id_to_expr(i: Id) Expr

Convert an identifier to an expression.

hydra.graphviz.serde.node_id_to_expr(nid: NodeId) Expr

Convert a node identifier to an expression.

hydra.graphviz.serde.node_or_subgraph_to_expr(directed: bool, ns: NodeOrSubgraph) Expr

Convert a node or subgraph to an expression.

hydra.graphviz.serde.node_stmt_to_expr(ns: NodeStmt) Expr

Convert a node statement to an expression.

hydra.graphviz.serde.port_to_expr(p: Port) Expr

Convert a port to an expression.

hydra.graphviz.serde.stmt_to_expr(directed: bool, s: Stmt) Expr

Convert a statement to an expression.

hydra.graphviz.serde.subgraph_id_to_expr(sid: SubgraphId) Expr

Convert a subgraph identifier to an expression.

hydra.graphviz.serde.subgraph_to_expr(directed: bool, sg: Subgraph) Expr

Convert a subgraph to an expression.