Skip to content
Back to top
View this page

# 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.