CommitNodeGrid

class dsviper.CommitNodeGrid

Bases: object

One commit’s place in the DAG once it is laid out on a grid.

row() and column() are the position; parent() and children() walk the layout, and header() reaches the commit itself.

Note: Not directly instantiable.

child_count() → int

Return the number of children.

children() → list[CommitNodeGrid]

Return the nodes whose parent is this one.

column() → int

Return the column the node sits in, once the DAG is laid out.

commit_id() → ValueCommitId

Return the commit_id of the commit this node stands for.

has_children() → bool

Return True if the node has children.

header() → CommitHeader

Return the CommitHeader of the commit this node stands for.

parent() → CommitNodeGrid | None

Return the parent or None.

row() → int

Return the row the node sits in, once the DAG is laid out.