CommitNodeGridBuilder

class dsviper.CommitNodeGridBuilder

Bases: object

A class used to build the grid layout of the commit DAG.

Note: Not directly instantiable.

static build(commit_node: CommitNode) CommitNodeGridBuilder

Create and return the builder.

column_max() int

Return the max index for a column.

nodes() dict[ValueCommitId, CommitNodeGrid]

Return a dict[uuid, CommitNodeGrid].

root() CommitNodeGrid | None

Return the root node or None.

row_max() int

Return the max index for row.