Skip to content

Commit

Permalink
add ascii tree
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Aug 19, 2022
1 parent fb65861 commit b607473
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/inclusion/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ func genSubTreeRootPath(depth int, pos uint) []bool {
}

// coord identifies a tree node using the depth and position
// Depth Position
// 0 0
// / \
// / \
// 1 0 1
// /\ /\
// 2 0 1 2 3
// /\ /\ /\ /\
// 3 0 1 2 3 4 5 6 7
type coord struct {
// depth is the typical depth of a tree, 0 being the root
depth uint64
Expand Down

0 comments on commit b607473

Please sign in to comment.