DotGraph

DotGraph(
    attrs: dict[str, str] = dict(),
    node_defaults: dict[str, str] = dict(),
    edge_defaults: dict[str, str] = dict(),
    nodes: list[DotNode] = list(),
    edges: list[DotEdge] = list(),
    ranks: list[list[str]] = list(),
)

A directed graph: graph, node and edge defaults, the nodes, the edges, and ranks, one list of node ids per rank in the order they are to be laid out across the sequence axis. Each rank becomes a rank=same subgraph whose nodes are chained by invisible edges in that order.

Attributes

Name Description
attrs
node_defaults
edge_defaults
nodes
edges
ranks

Methods

Name Description
to_text The DOT source.

to_text

to_text()

The DOT source.