git_dag.interfaces.graphviz.DagGraphviz

class git_dag.interfaces.graphviz.DagGraphviz(standalone_cluster: bool = False)[source]

Bases: DagBase

Graphviz interface.

Methods

build

Build the graph.

edge

Add an edge.

get

Return the backend graph object.

node

Add a node.

render

Render the graph.

source

Return graph source file.

build(format: str, node_attr: dict[str, str], edge_attr: dict[str, str], dag_attr: dict[str, str], filename: str | Path, cluster_params: dict[str, str]) None[source]

Build the graph.

edge(node1_name: str, node2_name: str, **attrs: str) None[source]

Add an edge.

get() Any[source]

Return the backend graph object.

node(name: str, label: str, color: str | None = None, tooltip: str | None = None, URL: str | None = None, standalone_kind: Literal['tree', 'blob'] | None = None, **attrs: str) None[source]

Add a node.

render() None[source]

Render the graph.

source() str[source]

Return graph source file.