# jkhamanishi/fixedlanegitgraph architecture

> Architecture diagram of the GitHub repository jkhamanishi/fixedlanegitgraph, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jkhamanishi/fixedlanegitgraph
- Repository: https://github.com/jkhamanishi/fixedlanegitgraph

## Overview

Fixed Lane Git Graph is an IntelliJ IDEA plugin that stabilizes Git Log branch lanes without replacing the IDE’s UI. Its documented workflow starts when the Git/Version Control window becomes visible, finds the commit table, extracts visible parent relationships, computes lane assignments, then injects them into rendering and routes long second-parent edges. The graph also preserves the plugin lifecycle, graph model, and long-edge setting adjustment. Core runtime paths are excerpted; additional capability details come from the README, so unsampled internal links are omitted where not evidenced.

Main entry points: [`src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt) (Lane assignment), [`src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt`](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt) (Persistent layout), [`src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt) (Rendering setup), [`src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt) (Plugin activation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lifecycle["Plugin lifecycle"]
  node_plugin["Plugin activation"]
  node_logger["Runtime logging<br/>[ConsoleLogger.kt]"]
end

subgraph group_layout["Lane layout"]
  node_commitmap["Commit relationships<br/>[CommitMap.kt]"]
  node_manager["Lane assignment<br/>[GraphManager.kt]"]
end

subgraph group_rendering["Rendering integration"]
  node_initializer["Rendering setup"]
  node_persist["Persistent layout"]
  node_router["Merge edge routing<br/>[MergeEdgeRouter.kt]"]
  node_longedges["Long-edge setting"]
end

subgraph group_model["Graph model"]
  node_graph["Graph structure<br/>[Graph.kt]"]
  node_vertex["Commit vertices<br/>[GraphVertex.kt]"]
  node_branch["Branch paths<br/>[GraphBranch.kt]"]
  node_types["Layout primitives<br/>[GraphDataTypes.kt]"]
end

node_ide(("IntelliJ IDE"))
node_logtable["Git Log table"]

node_ide -->|"starts plugin"| node_plugin
node_plugin -->|"initializes rendering"| node_initializer
node_plugin -->|"finds table"| node_logtable
node_logtable -->|"provides table"| node_initializer
node_initializer -->|"enables setting"| node_longedges
node_initializer -->|"applies layout"| node_persist
node_persist -->|"extracts parents"| node_commitmap
node_persist -->|"collects long edges"| node_router
node_persist -->|"computes lanes"| node_manager
node_manager -->|"reads parents"| node_commitmap
node_manager -->|"builds graph"| node_graph
node_graph -->|"holds vertices"| node_vertex
node_graph -->|"holds branches"| node_branch
node_vertex -->|"tracks branch"| node_branch
node_manager -->|"assigns lanes"| node_vertex
node_manager -->|"builds paths"| node_branch
node_router -->|"reads parents"| node_commitmap
node_persist -->|"injects layout"| node_logtable
node_initializer -->|"logs status"| node_logger
node_plugin -->|"logs lifecycle"| node_logger

click node_plugin "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt"
click node_initializer "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt"
click node_persist "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt"
click node_commitmap "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/CommitMap.kt"
click node_manager "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt"
click node_graph "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/Graph.kt"
click node_vertex "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphVertex.kt"
click node_branch "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphBranch.kt"
click node_types "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphDataTypes.kt"
click node_router "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/MergeEdgeRouter.kt"
click node_longedges "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/LongEdgesEnforcer.kt"
click node_logger "https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/ConsoleLogger.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_plugin,node_logger toneBlue
class node_commitmap,node_manager toneAmber
class node_initializer,node_persist,node_router,node_longedges toneMint
class node_graph,node_vertex,node_branch,node_types toneRose
class node_ide,node_logtable toneIndigo
```

## Components

### Plugin lifecycle

- [Plugin activation](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt): `src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`
- [Runtime logging](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/ConsoleLogger.kt): `src/main/kotlin/jkhamanishi/git/graph/ConsoleLogger.kt`

### Lane layout

- [Commit relationships](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/CommitMap.kt): `src/main/kotlin/jkhamanishi/git/graph/CommitMap.kt`
- [Lane assignment](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt): `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`

### Rendering integration

- [Rendering setup](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt): `src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`
- [Persistent layout](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt): `src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt`
- [Merge edge routing](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/MergeEdgeRouter.kt): `src/main/kotlin/jkhamanishi/git/graph/rendering/MergeEdgeRouter.kt`
- [Long-edge setting](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/rendering/LongEdgesEnforcer.kt): `src/main/kotlin/jkhamanishi/git/graph/rendering/LongEdgesEnforcer.kt`

### Graph model

- [Graph structure](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/Graph.kt): `src/main/kotlin/jkhamanishi/git/graph/algorithm/Graph.kt`
- [Commit vertices](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphVertex.kt): `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphVertex.kt`
- [Branch paths](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphBranch.kt): `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphBranch.kt`
- [Layout primitives](https://github.com/jkhamanishi/fixedlanegitgraph/blob/master/src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphDataTypes.kt): `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphDataTypes.kt`

### Other components

- **IntelliJ IDE**
- **Git Log table**

## Connections

- IntelliJ IDE → Plugin activation: starts plugin (evidence: `src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`)
- Plugin activation → Rendering setup: initializes rendering (evidence: `src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`)
- Plugin activation → Git Log table: finds table (evidence: `src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`)
- Git Log table → Rendering setup: provides table (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`)
- Rendering setup → Long-edge setting: enables setting (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`)
- Rendering setup → Persistent layout: applies layout (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`)
- Persistent layout → Commit relationships: extracts parents (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt`)
- Persistent layout → Merge edge routing: collects long edges (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt`)
- Persistent layout → Lane assignment: computes lanes (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/PersistentLayoutManager.kt`)
- Lane assignment → Commit relationships: reads parents (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`)
- Lane assignment → Graph structure: builds graph (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`)
- Graph structure → Commit vertices: holds vertices (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/Graph.kt`)
- Graph structure → Branch paths: holds branches (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/Graph.kt`)
- Commit vertices → Branch paths: tracks branch (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphVertex.kt`)
- Lane assignment → Commit vertices: assigns lanes (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`)
- Lane assignment → Branch paths: builds paths (evidence: `src/main/kotlin/jkhamanishi/git/graph/algorithm/GraphManager.kt`)
- Merge edge routing → Commit relationships: reads parents (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/MergeEdgeRouter.kt`)
- Persistent layout → Git Log table: injects layout (evidence: `README.md`)
- Rendering setup → Runtime logging: logs status (evidence: `src/main/kotlin/jkhamanishi/git/graph/rendering/GraphRenderingInitializer.kt`)
- Plugin activation → Runtime logging: logs lifecycle (evidence: `src/main/kotlin/jkhamanishi/git/graph/PluginInitializer.kt`)
