Class GraphLayout

java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphLayout

public final class GraphLayout extends Object
Assigns commits to lanes of the commit graph. Rows must be in display order (children before parents).
  • Method Details

    • layout

      public static List<GraphLayout.Row> layout(List<GraphLayout.Node> nodes)
      Assigns every commit a lane. A lane is followed from a commit to its first parent; further parents of a merge get lanes of their own, which end where the branch ends. Commits are given newest first.