Expand description
Graph calculation for commit visualization.
This module is adapted from Serie by Kyosuke Fujimoto, licensed under the MIT License. The algorithm calculates x,y positions for commits and edges to visualize the commit DAG.
Key changes from Serie:
- Uses
CommitCidinstead ofCommitHash - Uses
VoidCommitinstead of gitCommit - Simplified repository interface via
GraphContext
Structs§
- Edge
- A visual edge segment in the graph.
- Graph
- Calculated graph structure for rendering.
- Owned
Graph - Owned graph structure (no lifetime parameter).
- Simple
Graph Context - Simple in-memory graph context built from a commit list.
Enums§
- Edge
Type - Edge type determines the character used for rendering.
Traits§
- Graph
Context - Context providing commit relationships for graph calculation.
Functions§
- calc_
graph - Calculate the graph layout for a list of commits.
- calc_
graph_ owned - Calculate graph layout and return an owned structure.